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

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

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.

Most of the companion changes in esp-hal: esp-rs/esp-hal@045d20a

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