<?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 Non blocking UART in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328141#M15170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the raw MQX examples there is example of non blocking uart input:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t ser_opts = IO_SERIAL_NON_BLOCKING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;retval = ioctl(ser_device, IO_IOCTL_SERIAL_SET_FLAGS, &amp;amp;ser_opts);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if (retval != MQX_OK)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;{&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;fputs("TXtask Fatal Error: Unable to setup non-blocking mode.", stderr);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Unfortunately I could not find the IO_SERIAL_NON_BLOCKING defined inside my project or the KSDK,&lt;/P&gt;&lt;P&gt;is the non-blockin mode removed, or is the interface just changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I just want to check if a char is available from the UART, and if not just keep on with what I was doing....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 12:51:15 GMT</pubDate>
    <dc:creator>oaf</dc:creator>
    <dc:date>2014-12-05T12:51:15Z</dc:date>
    <item>
      <title>Non blocking UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328141#M15170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the raw MQX examples there is example of non blocking uart input:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t ser_opts = IO_SERIAL_NON_BLOCKING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;retval = ioctl(ser_device, IO_IOCTL_SERIAL_SET_FLAGS, &amp;amp;ser_opts);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if (retval != MQX_OK)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;{&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;fputs("TXtask Fatal Error: Unable to setup non-blocking mode.", stderr);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Unfortunately I could not find the IO_SERIAL_NON_BLOCKING defined inside my project or the KSDK,&lt;/P&gt;&lt;P&gt;is the non-blockin mode removed, or is the interface just changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I just want to check if a char is available from the UART, and if not just keep on with what I was doing....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 12:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328141#M15170</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2014-12-05T12:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Non blocking UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328142#M15171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drivers is classic MQX and MQX for KSDK are completeley different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MQX for KSDK you need to check for RDRF flash in UARTx Statusx Register. This flag is defined in KSDK as kUartIntRxDataRegFull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 18:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328142#M15171</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-12-10T18:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Non blocking UART</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328143#M15172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand what you mean. My UART is IRQ driven, could you please tell me which API I should use to&lt;/P&gt;&lt;P&gt;figure out if there is a char waiting in the input quee?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Non-blocking-UART/m-p/328143#M15172</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-01-16T14:56:12Z</dc:date>
    </item>
  </channel>
</rss>

