Skip to content
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

Implement support for light-/deep-sleep #375

Open
3 of 7 tasks
jessebraham opened this issue Feb 1, 2023 · 7 comments
Open
3 of 7 tasks

Implement support for light-/deep-sleep #375

jessebraham opened this issue Feb 1, 2023 · 7 comments
Labels
low power Light-/Deep-Sleep and co-processor support status:long-term This task will be around a while

Comments

@jessebraham
Copy link
Member

jessebraham commented Feb 1, 2023

We should provide APIs for entering light-/deep-sleep.

Chips which have been prioritized by the maintainers have associated tracking issues linked beside them. Community members are encouraged to attempt adding support for other chips as well.

@jessebraham jessebraham added the low power Light-/Deep-Sleep and co-processor support label Feb 1, 2023
@jessebraham jessebraham self-assigned this Feb 1, 2023
@jessebraham
Copy link
Member Author

jessebraham commented Jul 14, 2023

Support for light-/deep-sleep for ESP32 added in #574. I will begin work on supporting additional chips in the coming weeks.

@bugadani
Copy link
Contributor

I'd like to add as a todo item that the HAL should probably not expose the RtcSleepConfig type(s) directly. Instead, the HAL should expose something akin to esp-idf's "sleep flags". The reason is, that currently it is possible to create subtly broken sleep configurations: the user is free to set whatever combination they want, and the driver has no way of verifying the sleep configuration. Wakeup sources may also need to take care of setting up correct values, which should be easier handled when applying sleep flags.

@Ben-PH
Copy link

Ben-PH commented Aug 9, 2023

I'd like to contribute to this. Have an important use-case for C3, and a nice-to-have use case with S3 for light-sleep.

I have no idea how to go about doing this. I'll read through the links, but embedded and EE stuff is a bit crazy to me.

This will be my first time contributing to this project, and couldn't find a contributing file/instruction documentation. How should I go about contributing? fork-draft PR-iterate?

@jessebraham should we coordinate on this one?

@Ben-PH
Copy link

Ben-PH commented Aug 10, 2023

I've made #712

at this point, it's just a note-taking exercise, but if all goes well, will shortly start implementing the different sleeps for c3.

@jessebraham jessebraham removed their assignment Sep 18, 2023
@jessebraham
Copy link
Member Author

jessebraham commented Sep 29, 2023

ESP32-C3 support added in #795

@bugadani
Copy link
Contributor

bugadani commented Nov 9, 2023

I'm working on C6 now. It's a bit annoying as function names are different, but the flow seems to be similar enough. May take some time but I'll hope to get it working in a week or two.

@bugadani bugadani mentioned this issue Nov 9, 2023
12 tasks
@jessebraham jessebraham added the status:long-term This task will be around a while label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low power Light-/Deep-Sleep and co-processor support status:long-term This task will be around a while
Projects
Status: In Progress
Development

No branches or pull requests

4 participants