<?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>fgets() call doesn&amp;#39;t use uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45573/fgets-call-doesn-t-use-uart</link><description>Although redirect.c is included and printf() calls use the uart as expected, fgets() calls don&amp;#39;t seem to be able to detect incoming characters. 
 This isn&amp;#39;t critical, since I just wrote a quick wrapper for the app_uart_get() function that does exactly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 31 Mar 2019 15:32:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45573/fgets-call-doesn-t-use-uart" /><item><title>RE: fgets() call doesn't use uart</title><link>https://devzone.nordicsemi.com/thread/179360?ContentTypeID=1</link><pubDate>Sun, 31 Mar 2019 15:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:155ddd30-99dd-4380-857d-7d272a85b83d</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;the f.. functions are for file stream. &amp;nbsp;It is not guaranty that it is implement with __getchar __putchar.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fgets() call doesn't use uart</title><link>https://devzone.nordicsemi.com/thread/179359?ContentTypeID=1</link><pubDate>Sun, 31 Mar 2019 15:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6afb8489-f94b-4296-8ff0-c7a67c1c1f04</guid><dc:creator>msmithRT</dc:creator><description>&lt;p&gt;That seems to be true, but why is that? Do the f.. functions not use __getchar and __putchar?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also kind of funny that gets() might work, when it&amp;#39;s the crazy-unsafe version of the input call.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fgets() call doesn't use uart</title><link>https://devzone.nordicsemi.com/thread/179350?ContentTypeID=1</link><pubDate>Sun, 31 Mar 2019 01:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b975f1-8820-4e86-bb98-c253d638715a</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;redirect.c is not full redirect it only replaces a few functions. gets() may work all the f.. stuff will not.&lt;/p&gt;
&lt;p&gt;proper implementation is here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/I-SYST/EHAL/blob/master/src/stddev.c"&gt;https://github.com/I-SYST/EHAL/blob/master/src/stddev.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/I-SYST/EHAL/blob/master/src/uart_retarget.c"&gt;https://github.com/I-SYST/EHAL/blob/master/src/uart_retarget.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>