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

S3: GPIO wakeup source with RTC_IO pins #690

Merged
merged 5 commits into from
Aug 23, 2023
Merged

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Jul 25, 2023

Thank you!

Thank you for your contribution.
Please make sure that your submission includes the following:

Must

  • The code compiles without errors or warnings.
  • All examples work.
  • cargo fmt was run.
  • Your changes were added to the CHANGELOG.md in the proper section.
  • You updated existing examples or added examples (if applicable).
  • Added examples are checked in CI

Nice to have

  • You add a description of your work to this PR.
  • You added proper docs for your newly added features and code.

RTC_IO wakeup is using the GPIO wakeup source, but restricted to RTC_IO pins. Compared to esp-idf's idea of GPIO wakeup (which this PR doesn't prevent implementing, hence the different naming), it allows waking from deep sleep, as noted by the TRM.

cc #375

@bugadani
Copy link
Contributor Author

bugadani commented Jul 25, 2023

I'm tempted to change apply to take &mut self so we can drop the RefCells, but I'm also trying to move ahead in baby steps :)

I don't love it, but the API is much nicer without the tons of &mut.

@bugadani bugadani force-pushed the s3_rtcio branch 2 times, most recently from 30c5002 to 2ded36e Compare July 28, 2023 18:21
@bugadani bugadani marked this pull request as ready for review July 28, 2023 18:21
@bugadani bugadani marked this pull request as draft July 28, 2023 18:23
@bugadani bugadani force-pushed the s3_rtcio branch 2 times, most recently from b536530 to 3705a7b Compare August 9, 2023 13:46
@bugadani bugadani changed the title S3: Wake up with RTC_IO pins S3: GPIO wakeup source with RTC_IO pins Aug 9, 2023
@bugadani bugadani mentioned this pull request Aug 10, 2023
@bugadani bugadani force-pushed the s3_rtcio branch 4 times, most recently from b60f15d to d3bb732 Compare August 14, 2023 14:28
@bugadani bugadani marked this pull request as ready for review August 14, 2023 14:28
Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jessebraham jessebraham merged commit 6c2659f into esp-rs:main Aug 23, 2023
16 checks passed
@bugadani bugadani deleted the s3_rtcio branch August 23, 2023 17:55
playfulFence pushed a commit to playfulFence/esp-hal that referenced this pull request Sep 26, 2023
* Remove unnecessary Pin bounds

* S3: Add RTC_IO wakeup source

* Add s3 example

* Add changelog entry

---------

Co-authored-by: Jesse Braham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants