Could you mention what sleep mode does each case use? #2767
|
STM literature mentions the following cases: But the LowPower Library has:
How do these cases tie up to the official STM cases? |
Replies: 2 comments
|
The STM32LowPower API were developped based on https://github.com/arduino-libraries/ArduinoLowPower API. https://github.com/stm32duino/STM32LowPower/tree/main?tab=readme-ov-file#hardware-state You could check the code to find for the series you used the STM32 LP mode called. https://github.com/stm32duino/STM32LowPower/blob/main/src/STM32LowPower.cpp |
|
OK, so according to my research, the following modes are used: |
OK, so according to my research, the following modes are used:
.idle(); //same as HAL SLEEP
.sleep(); //same as HAL SLEEP
.deepSleep(); //uses HAL STOP2
.shutdown(); //uses HAL SHUTDOWN