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

🚸 add simple timer example with task notify #277

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

Vollbrecht
Copy link
Collaborator

A simple example how to notify a task from a hardware timer ISR.
I think using the EspTimer is more useful, but people like to use the Hardware timer directly so that's why i made the example.
CI will tell me if that's is working in newer IDF versions. Might need to rework the API for IDF 5 since they axed the api and now have it called general purpose timer.

@Vollbrecht
Copy link
Collaborator Author

@ivmarkov can you restart the one failed CI job. Looks like a random git issue

@ivmarkov
Copy link
Collaborator

ivmarkov commented Jul 5, 2023

Thanks! The new timer driver, a.k.a. the "general purpose timer" we don't support yet, as the legacy timer driver is still supported in ESP IDF 5.X. And honestly, other than the GP C timer relieving you from dealing with specific, MCU-dependent timer peripherals (which we actually want to deal with and model - due to the type safety of our HAL), I don't see other advantages to it - for now.

@ivmarkov ivmarkov merged commit a5dc68a into esp-rs:master Jul 5, 2023
8 checks passed
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.

2 participants