<?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 Re: How to pass arguments to thread ? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528998#M1267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Fri Sep 26 07:00:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You should start here. The link describes how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freertos.org%2Fa00125.html" rel="nofollow" target="_blank"&gt;http://www.freertos.org/a00125.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:33:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:33:03Z</dc:date>
    <item>
      <title>How to pass arguments to thread ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528997#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mondo90 on Fri Sep 26 06:55:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello, I need information how to pass arguments to thread function. Like below, how to pass args to vTaskLEDBlinker function ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;xTaskCreate( vTaskLEDBlinker, (const signed portCHAR * const) "while", configMINIMAL_STACK_SIZE,
NULL, 3, NULL);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can I writte it as :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;xTaskCreate( vTaskLEDBlinker(arg1,arg2), (const signed portCHAR * const) "while", configMINIMAL_STACK_SIZE,
NULL, 3, NULL);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:33:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528997#M1266</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass arguments to thread ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528998#M1267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Fri Sep 26 07:00:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You should start here. The link describes how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freertos.org%2Fa00125.html" rel="nofollow" target="_blank"&gt;http://www.freertos.org/a00125.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528998#M1267</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass arguments to thread ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528999#M1268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mondo90 on Fri Sep 26 07:59:32 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, good resource. I&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; have other questions: I have a light intensity project which flash leds respectivaly to light inetnsity like below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
while(1) {
....
if (adc_volt &amp;gt; 220){
led_on_of(1,1);
}else{led_on_of(1,0);led_on_of(2,0);led_on_of(3,0);led_on_of(4,0);}
if (adc_volt &amp;gt; 250){
led_on_of(2,1);
}else{led_on_of(2,0);led_on_of(3,0);led_on_of(4,0);} &lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) Is it good idea to open new thread for each led_of_of function ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) What is an adventage of use thread instead of just function call ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.) Should I delete threads after their job ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.) In general when should we use Threads ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:33:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-pass-arguments-to-thread/m-p/528999#M1268</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:33:04Z</dc:date>
    </item>
  </channel>
</rss>

