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 "before sleep" clean up code?
Thanks
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 "before sleep" clean up code?
Thanks
You can call app_uart_close() before you go into sleep, so before sd_app_evt_wait();
If you want to be absolutely sure, you can check that NRF_UART0->ENABLE is 0 before you go to sleep.
Then you would have to reinitialize UART when you want to use it again.
You can call app_uart_close() before you go into sleep, so before sd_app_evt_wait();
If you want to be absolutely sure, you can check that NRF_UART0->ENABLE is 0 before you go to sleep.
Then you would have to reinitialize UART when you want to use it again.
Thanks Petter