Hello! anyone knows how much time does need the app_uart_flush to erase the FIFO?
Hello! anyone knows how much time does need the app_uart_flush to erase the FIFO?
Looking to SDK source code in app.fifo.c
it seems that it's just setting end index to start index, so it's basically instant;) I guess that's what you would expect for FIFO in RAM...
uint32_t app_fifo_flush(app_fifo_t * p_fifo)
{
p_fifo->read_pos = p_fifo->write_pos;
return NRF_SUCCESS;
}
i am deleting my silly answer.