Open Serhii-the-Dev opened 5 months ago
Hello! I'm really not familiar with Embassy as I haven't used it myself yet, but would you like to send a PR to add an appropriate Embassy timer driver behind a feature flag, or would it make more sense to have a separate HAL crate specifically for Embassy?
Hello! I'm really not familiar with Embassy as I haven't used it myself yet, but would you like to send a PR to add an appropriate Embassy timer driver behind a feature flag, or would it make more sense to have a separate HAL crate specifically for Embassy?
Hi! Sorry, I'm new to the Rust embedded solutions world and it's hard for me to tell what a proper architecture would be...I was using the esp-hal
repository as a reference and they implemented embassy
support within their own crate so I was thinking it's a right place to ask, sorry if I made a mistake.
That sounds reasonable, please go ahead and send a PR to add it.
Sorry it took so long, it was hard to find some spare time to learn all the stuff required for the time driver implementation 😅 I've created a PR, please let me know if some clarification or changes are required.
The Embassy project imposes first-class
async
support in the Rust embedded world including wake-on-interrupt scenarios which may be extremely helpful in certain scenarios. Alas, this HAL crate is not compatible with embassy as it's not providing a generic timer driver.My
build.rs
:and the main file:
Error on
cargo build
: