<?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>topic cyclic MQX task without using timer in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/627998#M16941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I implement a repetitive MQX task (i.e. every 1s) without using _timer components?&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 15:24:05 GMT</pubDate>
    <dc:creator>gschelotto</dc:creator>
    <dc:date>2017-01-18T15:24:05Z</dc:date>
    <item>
      <title>cyclic MQX task without using timer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/627998#M16941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I implement a repetitive MQX task (i.e. every 1s) without using _timer components?&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 15:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/627998#M16941</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2017-01-18T15:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic MQX task without using timer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/627999#M16942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaston,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a little more information about your application however an option is to have into a task an infinite loop with a _time_delay(xxx). Please check the below example, this task toggle the pin value every second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;void led3_task&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(uint32_t initial_data) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;{ &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;int &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;value = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;LWGPIO_STRUCT led3; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;printf("\n led3 task \n"); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;lwgpio_init&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&amp;amp;led3, BSP_LED3, &lt;EM&gt;LWGPIO_DIR_OUTPUT&lt;/EM&gt;, &lt;EM&gt;LWGPIO_VALUE_NOCHANGE&lt;/EM&gt;)) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;lwgpio_set_functionality&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(&amp;amp;led3, BSP_LED3_MUX_GPIO); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;while &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(TRUE) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;{ &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;_time_delay&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(1000); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="font-size: 10.0pt;"&gt;lwgpio_set_value&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(&amp;amp;led3, value); /* toggle pin value */ &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;value = value^1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol &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>Thu, 19 Jan 2017 00:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/627999#M16942</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-01-19T00:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: cyclic MQX task without using timer</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/628000#M16943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sol, this is exactly what I needed. Thanks!&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:23:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/cyclic-MQX-task-without-using-timer/m-p/628000#M16943</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2017-01-19T09:23:33Z</dc:date>
    </item>
  </channel>
</rss>

