<?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 add a task in freertos in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-add-a-task-in-freertos/m-p/830011#M50191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yuan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xTaskCreate is an API to create a new task and add it to the list of tasks that are ready to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to below link and hello world demo for more details&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/a00125.html" title="https://www.freertos.org/a00125.html"&gt;This page describes the RTOS xTaskCreate() FreeRTOS API function which is part of the RTOS task control API. FreeRTOS i…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66046i9E0D1847A6334175/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSA_TaskCreate is a wrapper, it is also right to create a new task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Jul 2018 02:29:48 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2018-07-22T02:29:48Z</dc:date>
    <item>
      <title>how to add a task in freertos</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-add-a-task-in-freertos/m-p/830010#M50190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use the board frdm-kw36z i find the &amp;nbsp;freertos file fsl_os_abstraction_free_rtos.c this is the main function entrance as belows excerpt&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main (void)&lt;BR /&gt;{&lt;BR /&gt; /* Initialize MCU clock */&lt;BR /&gt; hardware_init();&lt;BR /&gt; OSA_TaskCreate(OSA_TASK(startup_task), NULL);&lt;/P&gt;&lt;P&gt;vTaskStartScheduler();&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to create another self define task how to add and make it works ,do i need to write &amp;nbsp;a similary &amp;nbsp;function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OSA_TaskCreate(OSA_TASK(my_task), NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and give some definition like this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#ifndef gMainThreadStackSize_c&lt;BR /&gt;#define gMainThreadStackSize_c 1024&lt;BR /&gt;#endif&lt;BR /&gt;#ifndef gMainThreadPriority_c&lt;BR /&gt;#define gMainThreadPriority_c 7&lt;BR /&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;than write a thread func in the realization of&amp;nbsp;&lt;SPAN&gt;my_task. is it that right ,or some one give tips or demo on how to add a self define task.. thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-add-a-task-in-freertos/m-p/830010#M50190</guid>
      <dc:creator>xiaolongyuan</dc:creator>
      <dc:date>2018-07-19T08:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a task in freertos</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-add-a-task-in-freertos/m-p/830011#M50191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yuan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xTaskCreate is an API to create a new task and add it to the list of tasks that are ready to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to below link and hello world demo for more details&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/a00125.html" title="https://www.freertos.org/a00125.html"&gt;This page describes the RTOS xTaskCreate() FreeRTOS API function which is part of the RTOS task control API. FreeRTOS i…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66046i9E0D1847A6334175/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSA_TaskCreate is a wrapper, it is also right to create a new task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2018 02:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-add-a-task-in-freertos/m-p/830011#M50191</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-07-22T02:29:48Z</dc:date>
    </item>
  </channel>
</rss>

