<?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>How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10533/how-to-turn-off-uart-before-ant-goes-into-sleep-mode</link><description>I have a simple ANT beacon application.
UART will be enabled to do some communication. How can I turn it off before ANT goes into sleep mode? Is there a call back function I can put some &amp;quot;before sleep&amp;quot; clean up code? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Nov 2015 16:51:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10533/how-to-turn-off-uart-before-ant-goes-into-sleep-mode" /><item><title>RE: How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/thread/39191?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 16:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:011cc62b-2dfd-4a60-b3eb-5958e4497493</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Thanks Petter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/thread/39190?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 16:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25820772-a36d-476a-8c87-ba3b47bfff54</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can call app_uart_close() before you go into sleep, so before sd_app_evt_wait();&lt;/p&gt;
&lt;p&gt;If you want to be absolutely sure, you can check that NRF_UART0-&amp;gt;ENABLE is 0 before you go to sleep.&lt;/p&gt;
&lt;p&gt;Then you would have to reinitialize UART when you want to use it again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/thread/39187?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 15:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e372a815-cd7e-4d9e-a401-cd5b62ea618d</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I am using app_uart.h&lt;/p&gt;
&lt;p&gt;APP_UART_FIFO_INIT(&amp;amp;uartComm, 32, 64, uart_event_handler, APP_IRQ_PRIORITY_HIGH, err_code);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/thread/39186?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 15:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e07059-b890-4960-baa0-15ede5fa9ec1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;But are you using nrf_drv_uart.h directly or something like app_uart.h?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/thread/39189?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 14:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b3da49-e4c7-4735-b59e-27debf92cd22</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Use nRF driver to do some communication. I guess you are thinking I know when to shut off the UART. And you are right , in this case actually I could.
So my broader question will be: Is there a &amp;quot;callback&amp;quot; in the stack I can put my &amp;quot;clean up&amp;quot; code there to MAKE SURE everything gets turned off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off UART before ANT goes into sleep mode</title><link>https://devzone.nordicsemi.com/thread/39188?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 14:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d226ec7-2b29-4801-9a33-cd62f95347c9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;How are you using the UART? Driver or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>