-
Notifications
You must be signed in to change notification settings - Fork 247
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
Clocks/Delay papercut. #138
Comments
What's wrong with the current situation?
Too complicated? |
Yes. At worst it should be:
Don't forget your example requires I think two traits to be in scope. |
Looking at other HALs, one option is to just not use cortex_m::delay::Delay but implement our own Delay, like here:
Interestingly, I found those by searching for Also noteworthy: rust-embedded/embedded-hal#103 |
@jonathanpallant: Now that The usage with
|
As mentioned above, I think this is solved with the current API. @thejpster, feel free to reopen if you disagree. |
You have the system clock speed in the results of
hal::clocks::init_clocks_and_plls
. But you can't just pass it tocortex_m::delay::Delay
. And it feels like you should be able to.The text was updated successfully, but these errors were encountered: