-
Notifications
You must be signed in to change notification settings - Fork 221
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/3] Timer abstraction: refactor systimer
and timer
modules into a common timer
module
#1527
[1/3] Timer abstraction: refactor systimer
and timer
modules into a common timer
module
#1527
Conversation
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, thanks!
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
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, thanks!
… a common `timer` module (#1527) * Refactor `systimer` and `timer` modules into a common `timer` module * Update `CHANGELOG.md`
fdacabb
to
bbebb64
Compare
… a common `timer` module (esp-rs#1527) * Refactor `systimer` and `timer` modules into a common `timer` module * Update `CHANGELOG.md` * Rebase and update new example
… a common `timer` module (esp-rs#1527) * Refactor `systimer` and `timer` modules into a common `timer` module * Update `CHANGELOG.md` * Rebase and update new example
I've decided to split this work up into a few PRs, as otherwise I think it will be rather difficult to review.
This first PR is simply refactoring the
systimer
andtimer
modules into a commontimer
module, now available at the pathstimer::systimer
andtimer::timg
respectively. This is a breaking change, but a minor one.The next PR will add the
Timer
trait and implement theOneShotTimer
andPeriodicTimer
types.The third and final PR will include documentation, plus probably some refactoring/cleanup.