<?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 How to give a semaphore in UART interrupt handler (K66) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-give-a-semaphore-in-UART-interrupt-handler-K66/m-p/654255#M39929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a newbie in kinetis microcontroller and Freertos. I have some questions as follow:&lt;/P&gt;&lt;P&gt;1. How to config an uart with RX interrupt handler using rtos driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If I config uart with functions in driver_examples for uart interrupt, how can i give a binary semaphore in that interrupt handler to call a task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 08:49:23 GMT</pubDate>
    <dc:creator>thaophan</dc:creator>
    <dc:date>2017-03-15T08:49:23Z</dc:date>
    <item>
      <title>How to give a semaphore in UART interrupt handler (K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-give-a-semaphore-in-UART-interrupt-handler-K66/m-p/654255#M39929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a newbie in kinetis microcontroller and Freertos. I have some questions as follow:&lt;/P&gt;&lt;P&gt;1. How to config an uart with RX interrupt handler using rtos driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If I config uart with functions in driver_examples for uart interrupt, how can i give a binary semaphore in that interrupt handler to call a task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 08:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-give-a-semaphore-in-UART-interrupt-handler-K66/m-p/654255#M39929</guid>
      <dc:creator>thaophan</dc:creator>
      <dc:date>2017-03-15T08:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to give a semaphore in UART interrupt handler (K66)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-give-a-semaphore-in-UART-interrupt-handler-K66/m-p/654256#M39930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thao,&lt;/P&gt;&lt;P&gt;As you know that the SDK2.0 support K66, you can download the SDK2.x from the link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/ksdk"&gt;http://www.nxp.com/ksdk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We have integrated FreeRTOS os in the sdk, pls refer to the example for the freertos:&lt;/P&gt;&lt;P&gt;C:\Freescale\SDK2.0_TWR-K65\boards\twrk65f180m\rtos_examples\freertos_uart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the architecture of firmware of the example, In the UART ISR, when the predefined number of data has been received already, the callback functioin is called, the in the callback function, a semaphore is posted, which will have the task to be load/run automatically which is waiting the semaphore.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 09:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-give-a-semaphore-in-UART-interrupt-handler-K66/m-p/654256#M39930</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-03-16T09:11:31Z</dc:date>
    </item>
  </channel>
</rss>

