Hi,
I am using the nrf52832 dk
i am using the uart code from the sdk.
how do i clear the rx_buf and tx_buf (buffers) and set the pointers to the beginning of the buffers every time i clear it?
Hi,
I am using the nrf52832 dk
i am using the uart code from the sdk.
how do i clear the rx_buf and tx_buf (buffers) and set the pointers to the beginning of the buffers every time i clear it?
Hi
app_uart_flush() will clear both buffers. Note that the function does nothing if FIFO isn't used, although this is used in the SDK 15.3 examples so that shouldn't be a problem.
Best regards,
Simon
Hi
app_uart_flush() will clear both buffers. Note that the function does nothing if FIFO isn't used, although this is used in the SDK 15.3 examples so that shouldn't be a problem.
Best regards,
Simon