Dears,
I am developing my application based on SDKv12.0.0. I would like to use "printf" & "app_uart_get"(interrupt routing) instead of "NRF_LOG". Is possible to switch it? What should I do to replace it?
Can someone tell me that how to get a string using NRF_LOG_GETCHAR()? The following is my process, is it correct?
c = NRF_LOG_GETCHAR();
NRF_LOG_INFO("%c", c);
NRF_LOG_GETCHAR() is blocking, and returns when single byte is received. So it could be better to use app_uart_get() instead. Take a look at e.g. the ble_app_uart example and see how its done there.
NRF_LOG_GETCHAR() is not suitable for our application. There are some routine processes in the main loop. However, we decided to implement App_Uart process to handle uart function at Rx / Tx. Thanks for everyone who advised.