<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flush UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6369/flush-uart</link><description>Hello everyone, 
 I&amp;#39;m currently using and modifying the experimental_ble_app_uart. I&amp;#39;ve seen that for sending characters resp commands the file simple_get_uart is used. My question now is, if there is a way to flush the UART? 
 Thanks and best,
pi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Apr 2015 07:36:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6369/flush-uart" /><item><title>RE: Flush UART</title><link>https://devzone.nordicsemi.com/thread/22185?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2015 07:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78bacfe7-7a89-4604-ab94-a9c42688324f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Pingu,&lt;/p&gt;
&lt;p&gt;If you are not using FIFO API for UART.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;1.	STOPRX and STOPTX
2.  UART-&amp;gt;TXD = 0    // this is just to ensure predictable behaviour with flow control
3.	While(event_ready != 0){ clear event, read uart rxd}
4.	STARTTX and STARTRX
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When not using flow control -&amp;gt; TXD byte will be transmitted immediately when written and cannot be stopped.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>