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

Rework time-driver contract. #3593

Merged
merged 15 commits into from
Dec 16, 2024
Merged

Rework time-driver contract. #3593

merged 15 commits into from
Dec 16, 2024

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Nov 30, 2024

This PR simplifies the contract between embassy-time-driver and implementations to a pair of now and schedule_wake functions. Implementing a timer queue is now the responsibility of the time-driver implementation, the generic-queue or integrated-timer features no longer provide a complete implementation, it's now the responsibility of the time-driver/timer-queue-driver implementor.

If using the executor, integrated-timers are implied, but the users may choose _generic-queue if they want to.

Companion changes in esp-hal: esp-rs/esp-hal#2701

@bugadani bugadani force-pushed the refactor branch 5 times, most recently from 62e07f4 to 9c8b89e Compare November 30, 2024 20:55
@bugadani

This comment was marked as outdated.

@bugadani bugadani changed the title Commit crimes Rework time-driver contract. Dec 1, 2024
@bugadani bugadani force-pushed the refactor branch 3 times, most recently from c5439bf to 21dff6a Compare December 5, 2024 21:49
@bugadani bugadani marked this pull request as ready for review December 5, 2024 21:50
@bugadani bugadani force-pushed the refactor branch 9 times, most recently from 9e23362 to 97cfa4f Compare December 8, 2024 16:24
@bugadani bugadani marked this pull request as draft December 8, 2024 17:41
@bugadani bugadani force-pushed the refactor branch 3 times, most recently from 3c048c9 to efdddc3 Compare December 8, 2024 18:18
@bugadani bugadani marked this pull request as ready for review December 8, 2024 18:31
@bugadani bugadani force-pushed the refactor branch 2 times, most recently from 7c66671 to 9733969 Compare December 8, 2024 22:28
@bugadani bugadani force-pushed the refactor branch 4 times, most recently from 640bd1c to 2474fbf Compare December 12, 2024 15:00
@Dirbaio
Copy link
Member

Dirbaio commented Dec 12, 2024

bender run

@bugadani bugadani force-pushed the refactor branch 2 times, most recently from ec73c78 to 1401572 Compare December 13, 2024 20:19
@bugadani

This comment was marked as outdated.

@bugadani bugadani force-pushed the refactor branch 4 times, most recently from 9b4fbde to 01b2f14 Compare December 15, 2024 17:47
Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

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

🚀

@Dirbaio Dirbaio added this pull request to the merge queue Dec 16, 2024
Merged via the queue into embassy-rs:main with commit 2c3bc75 Dec 16, 2024
7 checks passed
@bugadani bugadani deleted the refactor branch December 16, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants