<?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: How to Disable/Enable MQX task template?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336424#M10841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;_task_block() - Blocks the active task.&lt;/P&gt;&lt;P&gt;_task_ready() - Makes the task ready to run by putting it in its ready queue.&lt;/P&gt;&lt;P&gt;_task_restart() - Restarts the task.&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;or by any of other functions for synchronization, like Semaphores, Events, Mutexs, Message Queues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, please see MQX_User_Guide.pdf and MQX_Reference_Manual.pdf at c:\Freescale\Freescale_MQX_4_1\doc\mqx\&lt;/P&gt;&lt;P&gt;Very useful videos:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_COURSE"&gt;http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_COURSE&lt;/A&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, 03 Sep 2014 14:58:10 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2014-09-03T14:58:10Z</dc:date>
    <item>
      <title>How to Disable/Enable MQX task template?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336423#M10840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-excerpt-slug"&gt;Dear friends,&amp;nbsp;&amp;nbsp; In my project some template_task are running under round robin scheduling!!! (for ex: 10 tasks). if I want to stop/disable and resume/Enable some tasks like 5 &amp;amp; 6? how to do it?…&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 11:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336423#M10840</guid>
      <dc:creator>sivakumarananth</dc:creator>
      <dc:date>2014-09-03T11:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable/Enable MQX task template?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336424#M10841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;_task_block() - Blocks the active task.&lt;/P&gt;&lt;P&gt;_task_ready() - Makes the task ready to run by putting it in its ready queue.&lt;/P&gt;&lt;P&gt;_task_restart() - Restarts the task.&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;or by any of other functions for synchronization, like Semaphores, Events, Mutexs, Message Queues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, please see MQX_User_Guide.pdf and MQX_Reference_Manual.pdf at c:\Freescale\Freescale_MQX_4_1\doc\mqx\&lt;/P&gt;&lt;P&gt;Very useful videos:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_COURSE"&gt;http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBT_MQX_RTOS_COURSE&lt;/A&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, 03 Sep 2014 14:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336424#M10841</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-09-03T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable/Enable MQX task template?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336425#M10842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morn Radek s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tnks fr ur immediate response. I have a doubt that out of 10 task running in FIFO(round robin) now the active task running is '3' and this point I want to hold/Disable task '8' and then after the tasks like 3, 4, 5 running and then I want to resume/enable '8' task. is it possible? when ever I need I want to pause/disable/hold some tasks and then resume. is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 04:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336425#M10842</guid>
      <dc:creator>sivakumarananth</dc:creator>
      <dc:date>2014-09-11T04:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable/Enable MQX task template?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336426#M10843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid that it is not possible to directly block inactive task from active task. It could be dangerous.&lt;/P&gt;&lt;P&gt;Idea1: You can try play with _task_set_priority() command.&lt;/P&gt;&lt;P&gt;Idea2: You can use _sched_yield() function for switching between tasks in ready queue and after that use _task_block in some of tasks. You can use also _time_delay() when you want remove task from ready queue for some specific time.&lt;/P&gt;&lt;P&gt;Idea3: The best way is using synchronization objects like semaphores, events, mutexs and message queues … and rather their lightweight versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 16:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336426#M10843</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-09-11T16:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Disable/Enable MQX task template?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336427#M10844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;I agree with Radek comments and suggestions.&lt;/P&gt;&lt;P&gt;Assumption:&lt;/P&gt;&lt;P&gt;- You are not setting up the 10 round robin tasks to use Time Slicing.&amp;nbsp; Is that correct?&amp;nbsp; If assumption correct then next assumption is you are using _sched_yield() or _time_delay() to block the round robin task to let the next task run.&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional suggestions:&lt;/P&gt;&lt;P&gt;- Assuming the _sched_yield() or _time_delay() is being used to block the running task, you might add in a lwevent structure to be used by all 10 round robin tasks.&amp;nbsp; Once the task becomes active it could use _lwevent_wait_until() to test for a event bit mask setting.&amp;nbsp; If the bit is set, then the task runs.&amp;nbsp; If the bit mask is not set, then the task will block until another task sets that bit mask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:32:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-Disable-Enable-MQX-task-template/m-p/336427#M10844</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-09-12T14:32:03Z</dc:date>
    </item>
  </channel>
</rss>

