-
Notifications
You must be signed in to change notification settings - Fork 6
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
a bit of documenting and refractoring? #2
Comments
Hmm that's not ideal. When you disable async it should depend on
I locally use it with an NRF52840 based board, which of course has its own hal implementation so I'm not sure how well it would translate. I might be able to extract some examples from my repo if you'd like. And if you have an idea how to handle the delay stuff better, please do tell! I did it this way because several other drivers used it like this and I found no better way til today.
I definitely want to keep them in one crate for now but introducing feature flags is probably a good call.
Please do! Help is always welcome! |
so after some more research one of the issues is not in reach, at least partial i guess. as you said you maybe need a example:
as dependencies (quick copy paste) i observed the following disabeling async does not affect the embedded registers crate
i would suspect that the crate embedded registers should have a cargo reference of as this completes the issue i could add a sample project also for the esp32 board with a bme280. |
currently im struggeling to find a delay provider that works with your code and my board, a esp32-wroom-32.
I saw that it has to implement at least
DelayNs
but the default one and theesp_idf_hal::delay::Ets
does not have them implemented as async. upon disabeling the async feature gates theMAX31865
code breaks as now the traitembedded_hal_async::spi::SpiDevice
is not implemented anymore.An example would be nice to see if i can align my environment here.
also it would be neat to add feature flags for each driver to filter for what you actually need. Or split the drivers into seperate crates.
maybe i can help a bit on that work, but before i start doing things, i would like to get your opinion on this.
The text was updated successfully, but these errors were encountered: