They both seem to implement the same interface in app_uart.h.
regards, //Elm
They both seem to implement the same interface in app_uart.h.
regards, //Elm
Hi
Basically when you want to senddata over UART, the app_uart_fifo.c stores data into fifo, but app_uart.c transfers a byte directly.
The effect is with app_uart.fifo.c, the application can push characters continuously with calls to app_uart_put, e.g. in a while loop, and the application will get a APP_UART_TX_EMPTY event when the string transfer is complete (when the TX fifo buffer is empty).
If you call app_uart_put with app_uart.c, the first call to app_uart_put will be successful, but subsequent calls might just return NRF_ERROR_NO_MEM if the UART is busy sending the previous byte.
Thanks for the info!
regards, Elm
I know this is an old thread and will probably be a dumb question after I ask it, but that being said, where/how does one link the app_uart_fifo.c file instead of the app_uart.c file? Thanks