STM32LowPower - max limit on milliseconds for deepSleep()

Working libraries, libraries being ported and related hardware
Post Reply
brixton
Posts: 24
Joined: Thu Mar 30, 2023 11:51 am
Answers: 1

STM32LowPower - max limit on milliseconds for deepSleep()

Post by brixton »

Hello,

Is there max limit on deepSleep(uint32_t ms)? Other than the max of a uint32_t, which would be 2^32 - 1 = 4294967295.

I'm coming from a teensy with Snooze library, and that uses a upper limit per sleep cycle of 60 s I believe, hence the question.

This page only mentions the lower limit for some MCU's.
https://github.com/stm32duino/STM32LowPower

Many thanks!
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32LowPower - max limit on milliseconds for deepSleep()

Post by fpiSTM »

In fact using ms here program the rtc for simplicity. You can program manually an alarm of the rtc to wake-up when you want.
Post Reply

Return to “Libraries & Hardware”