Hello everyone,
I'm currently using and modifying the experimental_ble_app_uart. I've seen that for sending characters resp commands the file simple_get_uart is used. My question now is, if there is a way to flush the UART?
Thanks and best, pingu
Hello everyone,
I'm currently using and modifying the experimental_ble_app_uart. I've seen that for sending characters resp commands the file simple_get_uart is used. My question now is, if there is a way to flush the UART?
Thanks and best, pingu
Hi Pingu,
If you are not using FIFO API for UART.
1. STOPRX and STOPTX
2. UART->TXD = 0 // this is just to ensure predictable behaviour with flow control
3. While(event_ready != 0){ clear event, read uart rxd}
4. STARTTX and STARTRX
When not using flow control -> TXD byte will be transmitted immediately when written and cannot be stopped.
Hi Pingu,
If you are not using FIFO API for UART.
1. STOPRX and STOPTX
2. UART->TXD = 0 // this is just to ensure predictable behaviour with flow control
3. While(event_ready != 0){ clear event, read uart rxd}
4. STARTTX and STARTRX
When not using flow control -> TXD byte will be transmitted immediately when written and cannot be stopped.