<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software SolutionsのトピックRe: Proper hwtimer bsp definition</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354196#M11535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can use definitions in twrk70f120m.h file for initialization your own application timer.&lt;/P&gt;&lt;P&gt;On other hand, this definitions are not necessary - they are there just for standardization of hwtimer example code across MCUs portfolio. You can define these values directly in your code or use directly numbers in hwtimer_init() function.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;HWTIMER hwtimer5;&lt;/P&gt;&lt;P&gt;/* Initialize&amp;nbsp; hwtimer5 */&lt;/P&gt;&lt;P&gt;result = hwtimer_init(&amp;amp;hwtimer5, &amp;amp;pit_devif, 5, 3);&lt;/P&gt;&lt;P&gt;if (MQX_OK != result)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 15:11:21 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2014-09-17T15:11:21Z</dc:date>
    <item>
      <title>Proper hwtimer bsp definition</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354195#M11534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to change hwtimer2 definition.&lt;/P&gt;&lt;P&gt;After creating my custom k70, the default is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* HWTIMER definitions for user applications */&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER1_DEV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pit_devif&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER1_SOURCE_CLK (CM_CLOCK_SOURCE_BUS)&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER1_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER2_DEV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lpt_devif&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER2_SOURCE_CLK (CM_CLOCK_SOURCE_LPO)&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER2_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because I needed a pit timer, not an lpo, I changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* HWTIMER definitions for user applications */&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER1_DEV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pit_devif&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER1_SOURCE_CLK (CM_CLOCK_SOURCE_BUS)&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER1_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER2_DEV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pit_devif&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //was lpt_devif&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER2_SOURCE_CLK (CM_CLOCK_SOURCE_BUS) //was (CM_CLOCK_SOURCE_LPO)&lt;/P&gt;&lt;P&gt;#define BSP_HWTIMER2_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if this is the proper/standard way of updating the hwtimer definition?&lt;/P&gt;&lt;P&gt;Or, is there another way using the user_config.h to do the same (I couldn't find any setting for hwtimers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 12:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354195#M11534</guid>
      <dc:creator>jamesmonczynski</dc:creator>
      <dc:date>2014-09-10T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proper hwtimer bsp definition</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354196#M11535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can use definitions in twrk70f120m.h file for initialization your own application timer.&lt;/P&gt;&lt;P&gt;On other hand, this definitions are not necessary - they are there just for standardization of hwtimer example code across MCUs portfolio. You can define these values directly in your code or use directly numbers in hwtimer_init() function.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;HWTIMER hwtimer5;&lt;/P&gt;&lt;P&gt;/* Initialize&amp;nbsp; hwtimer5 */&lt;/P&gt;&lt;P&gt;result = hwtimer_init(&amp;amp;hwtimer5, &amp;amp;pit_devif, 5, 3);&lt;/P&gt;&lt;P&gt;if (MQX_OK != result)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 15:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354196#M11535</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-09-17T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proper hwtimer bsp definition</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354197#M11536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I did not know that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 15:13:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Proper-hwtimer-bsp-definition/m-p/354197#M11536</guid>
      <dc:creator>jamesmonczynski</dc:creator>
      <dc:date>2014-09-17T15:13:30Z</dc:date>
    </item>
  </channel>
</rss>

