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

[1/3] Timer abstraction: refactor systimer and timer modules into a common timer module #1527

Merged
merged 3 commits into from
May 2, 2024

Conversation

jessebraham
Copy link
Member

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 and timer modules into a common timer module, now available at the paths timer::systimer and timer::timg respectively. This is a breaking change, but a minor one.

The next PR will add the Timer trait and implement the OneShotTimer and PeriodicTimer types.

The third and final PR will include documentation, plus probably some refactoring/cleanup.

Copy link
Member

@MabezDev MabezDev 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!

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM

@bjoernQ bjoernQ added this pull request to the merge queue May 2, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 2, 2024
Copy link
Contributor

@JurajSadel JurajSadel 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!

@JurajSadel JurajSadel added this pull request to the merge queue May 2, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 2, 2024
… a common `timer` module (#1527)

* Refactor `systimer` and `timer` modules into a common `timer` module

* Update `CHANGELOG.md`
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 2, 2024
@jessebraham jessebraham force-pushed the feature/timer-abstraction-0 branch from fdacabb to bbebb64 Compare May 2, 2024 13:18
@jessebraham jessebraham enabled auto-merge May 2, 2024 13:19
@jessebraham jessebraham added this pull request to the merge queue May 2, 2024
Merged via the queue into esp-rs:main with commit 68a4fb2 May 2, 2024
21 checks passed
@jessebraham jessebraham deleted the feature/timer-abstraction-0 branch May 2, 2024 13:37
MabezDev pushed a commit to MabezDev/esp-hal that referenced this pull request May 2, 2024
… 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
MabezDev pushed a commit to MabezDev/esp-hal that referenced this pull request May 2, 2024
… 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
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.

4 participants