When the pyboard is put into low power mode using the pyb.stop() call, is the UART hardware still running? If so, is a UART interrupt sufficient to cause the pyb.stop() call to return?
I have a data collection application in which data will arrive at irregular intervals over a serial interface but it would be useful to have the board in a low power state when not processing the data. I know that the counters used for pyb.millis() and pyb.micros() get suspended when I call pyb.stop(). If the UARTs get shut down too then presumably I can use wfi() instead but it looks like this won't save as much power. Any (non-null) pointers would be helpful!
Can UART data wake the pyboard from pyb.stop()?
Re: Can UART data wake the pyboard from pyb.stop()?
The datasheet says that any peripheral interrupt acknowledged by the NVIC will wake the MCU, so it sounds like it will work.