-
Notifications
You must be signed in to change notification settings - Fork 212
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
[1/2] Remove Async/Blocking and Periodic/Target modes from systimer and timg #2542
base: main
Are you sure you want to change the base?
Conversation
I'm going to rework the systimer a bit in this PR, it's too annoying to get CI green without it. Converting back to draft for now. |
a331d31
to
bc06681
Compare
- Removes the notion of Unit being a resource, instead these are configured at the construction of `Systimer` (and can't be reconfigured after we move anything out of `Systimer`, this mimics the behaviour of `FrozenTimer` without having to deal with it
bc06681
to
390cb73
Compare
skip change log for esp-wifi and esp-embassy-hal changes, they are breaking but not for anyone upgrading (esp-wifi etc are tightly coupled to esp-hal right now). |
} | ||
} | ||
/// Alarms created from the System Timer peripheral. | ||
pub struct SysTimerAlarms { |
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.
pub struct SysTimerAlarms { | |
pub struct SystemTimerAlarms { |
We should probably be consistent with our naming.
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
This PR removes much of the logic out of the lower level timers, and instead moves the logic to the
OneShot
andPeriodic
timer drivers.cc: #2321
I will do a follow up PR which adds the mode to the timer drivers, and implement
into_async
and the eh traits there, as this PR got surprising large surprisingly quick.