How to implement idle interrupts on BufferedSerial

I know that mbed has an idle loop that run when all other threads are idle, but how to implement idle interrupts on BufferedSerial?


I do not know what means the Idle interrupts and it sounds strange. When you want use interrupts that usually mean you want do something immediately after something else happen and not wait until MCU have nothing to do.

If you want attach something to idle then

BufferedSerial is working with interrupts in background but its public methods Read/Write are covered by Mutex so it is not possible to use them in interrupt context.

BR, Jan

Hi Jan,

This sounds like something STM32 specific. The STM32 uart has the possibility to generate an interrupt when the serial line goed idle after receiving an unknown amount of data.