<?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>UART Async support with SHELL when interrupts are not used?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46982/uart-async-support-with-shell-when-interrupts-are-not-used</link><description>Hello, 
 Is their planned future support or using UART_ASYNC_API with SHELL when interrupts are not used? 
 static int uarte_nrfx_poll_in(struct device *dev, unsigned char *c)
{

	const struct uarte_nrfx_data *data = get_dev_data(dev);
	NRF_UARTE_Type</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2019 08:49:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46982/uart-async-support-with-shell-when-interrupts-are-not-used" /><item><title>RE: UART Async support with SHELL when interrupts are not used?</title><link>https://devzone.nordicsemi.com/thread/186594?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 08:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ceece88-539e-4cee-8fa9-9e5d51bb7f7f</guid><dc:creator>Mierunski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t plan on supporting uart_poll_in function in UART_ASYNC_API due to many ambiguities on how it should be handled.&lt;/p&gt;
&lt;p&gt;If you decide to use uart instance with UART_ASYNC_API please use uart_rx_enable function for receiving.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Mieszko Mieruński&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Async support with SHELL when interrupts are not used?</title><link>https://devzone.nordicsemi.com/thread/186240?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 14:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d77c5a05-4684-4049-9327-e4d52df84a68</guid><dc:creator>gonzalezjl</dc:creator><description>&lt;p&gt;Hello Jakub,&lt;/p&gt;
&lt;p&gt;I have tried that configuration both through the project.conf and by using ninja menuconfig. &amp;nbsp;The results are the same. &amp;nbsp;The shell starts up, but I can&amp;#39;t poll UART_0 because of a ENOTSUP error when UART ASYNC API is used. See code above and picture below.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Juan&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2019_2D00_05_2D00_09-at-9.49.15-AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Async support with SHELL when interrupts are not used?</title><link>https://devzone.nordicsemi.com/thread/186204?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 13:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ccd5f2e-241c-4a16-b762-fade605e7765</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;However such approach in my opinion has a lot of disadvantages. You won&amp;#39;t be able to paste text to shell. There will be too many characters and you will lost most of them during uart polling.&lt;/p&gt;
&lt;p&gt;The same goes with meta keys. For istance history feature may not work. Up arrow is composed of 3 characters sent in short period of time. This can be lost when using non interrupt mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Async support with SHELL when interrupts are not used?</title><link>https://devzone.nordicsemi.com/thread/186201?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 13:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20d60763-ce3a-474a-8c48-2ff112cf0007</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;But this is already supported! :)&lt;/p&gt;
&lt;p&gt;We let a lot of flexibility and you can adopt it to your needs using Kconfig.&lt;/p&gt;
&lt;p&gt;You need to&lt;strong&gt; first&lt;/strong&gt; disable interrupt driven UART backend in shell options and &lt;strong&gt;next&lt;/strong&gt; disable interrupt driven UART driver.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3146.1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8420.2.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>