-
Notifications
You must be signed in to change notification settings - Fork 367
ESP32-S3 deep sleep #660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-S3 deep sleep #660
Conversation
d79d4a1 to
59c548a
Compare
|
esp-idf's This probably means we'll need to tie some of the sleep infra into clock initialization, for example. Or, maybe I shouldn't complicate matters and we should mandate the user to call some initialization function when using sleep. |
|
I have hijacked A current worry I have is that we leak |
76784ac to
ee35435
Compare
MabezDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, works for me so I see no reason not to merge this as is. Thanks for looking into this!
oh wow I didn't actually test this because I need to implement GPIO wakeup for my stuff, but that's great to hear! |
* Add changelog entry * Copy esp32 impl, update RtcSleepConfig * implement apply * extract rtc_sleep_pu * Implement base_settings based on esp-idf rtc_init * Hide CPU-specific sleep code * Set base_settings when constructing Rtc * Add s3 deep sleep defaults * Implement finish_sleep * Turn magic constant into enum * Clear ext1 wakeup status * Add wakeup source impls * Add examples
This PR adapts #574 for the ESP32-S3. The PR also includes some minor changes to the ESP32 implementation based on esp-idf.
cc #375