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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Nov 30, 2024

This PR simplifies the contract between embassy-time-driver and implementations to just a single now function. 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.

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
Copy link
Contributor Author

bugadani commented Dec 1, 2024

Hmm, should I restore the queue size features, yet still expose the const generic? I'd like to not duplicate the features in every HAL, but I also don't need them so keeping them is somewhat confusing.

The timer queue implementations are there for convenience - in the integrated case it's also to not expose most of the executor's internals.

@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 3a10a08 to c78ce97 Compare December 10, 2024 20:29
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.

1 participant