1e6679a23b
ringbuf claim API returns pointer to contiguous area. In cases when data in ringbuf wraps the end of internal buffer, then single call to claim data is not enough to get all data - there is remaining part on the beginning of internal buffer. Those remaining bytes will need to wait for next ISR handler to trigger workqueue. Theoretically this means that data on the beginning of ringbuf can wait there forever. Consume data from ringbuf in a loop, stopping only when claiming results in empty buffer. This will make sure that there is no stale data in the ringbuf. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.gsm_mux | ||
gsm_mux.c | ||
gsm_mux.h | ||
ipm_console_receiver.c | ||
ipm_console_sender.c | ||
native_posix_console.c | ||
ram_console.c | ||
rtt_console.c | ||
semihost_console.c | ||
uart_console.c | ||
uart_mcumgr.c | ||
uart_mux.c | ||
uart_mux_internal.h | ||
uart_pipe.c | ||
xtensa_sim_console.c |