-
Notifications
You must be signed in to change notification settings - Fork 103
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
Upgrade to embedded-hal v1.0.0 #476
base: master
Are you sure you want to change the base?
Conversation
I am stuck trying to create a second (non-SYST) delay. Do you have an example of how to do this now? I'm not having any luck with approaches I've used before. (Also, you might remove the example using |
It's not possible until there's another |
@richardeoin could you clarify "not possible until there's another |
Someone would have to add the implementations in this crate. I wouldn't
expect it to be very complicated once you get used to how macros are used
to implement the timers in this crate.
…On Sun, Dec 24, 2023, 4:02 PM pdgilbert ***@***.***> wrote:
@richardeoin <https://github.com/richardeoin> could you clarify "not
possible until there's another DelayNs implementation". Is that another
embedded-hal implementation or an stm32h7xx-hal implementation? I'm
confused because I have non-SYST examples working with stm32f4xx_hal, but
they may be using that hal's magic for dual support of an older
embedded-hal.
—
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUS5FKINSR3YC7CZBKUKM3YLCQ7TAVCNFSM6AAAAABBAAQFC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGYYDANRVGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@pdgilbert Indeed I mean that more code needs to be added to this PR. I added a very minimal implementation of |
Ok, thanks @richardeoin. That seems to work to get some of my examples compiling. Now the main problem is device crates using eh-1. For anyone interested, the CI is in the jobs for |
I think there is some worth in supporting both e-h v1.0 and e-h v0.2 traits to avoid dependency hell during the transition (including our own dependencies like |
I actually would say to completely drop 0.2. I thought about this in the past and if there's support for the older version, it discourages people from actually putting in the work to upgrade things (which isn't actually very hard) and it increases the overhead on the HAL drastically |
I agree that having a hal support both Unfortunately just merging One solution might be to have two branches, |
I inquired about this on the Matrix channel, and it sounds like the consensus is to support both 0.2 and 1.0 as best practice. This document helps describe best methods to do it as well. |
Thanks for the link @ryan-summers . That makes it sound easy. Glad there is a best practice. I look forward to having eh-1.0 in the master branch, and to getting a few more things working. |
@richardeoin I had a thought to slowly add v1.0 e-h peripherals slowly as they get implemented in #504 instead of converting the whole repo at once (since its a lot). This way we can encourage users to add new support as they need it, too. Open to some thoughts here, just seems like this PR is a lot of effort on your part (which is greatly appreciated) :) |
Use released version ofNot requiredstm32-fmc
(when released)transaction
implementationDelayNs
for Timers. AfterDelayFromCountDownTimer
was removedDelayNs
is only implemented for SysTickdelay_ns
method in theDelayNs
implementation onDelayFromCountDownTimer
DelayFromCountDownTimer