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

embedded-hal-1.0.0 migration #8

Open
pdgilbert opened this issue Dec 18, 2023 · 0 comments
Open

embedded-hal-1.0.0 migration #8

pdgilbert opened this issue Dec 18, 2023 · 0 comments

Comments

@pdgilbert
Copy link

From @rednez1337 's fork https://github.com/rednaz1337/ds18b20 I have made adjustments for embedded-hal-1.0.0-rc3 in a fork at https://github.com/pdgilbert/ds18b20 and tested with the git version of stm32f4xx_hal, which has rc3 thanks to @rursprung and @burrball. My main changes to ds18b20 are to use embedded_hal::delay::DelayNs; in several places and in Cargo.toml put

[dependencies]
one-wire-bus    = { git = "https://github.com/daniel-larsen/one-wire-bus" }
embedded-hal = {version="1.0.0-rc.3"}

which @daniel-larsen has updated for rc3.

FWIW, these may provide some pieces for the embedded-hal-1.0.0 jump.

Other device crates I have been checking are all using older embedded-hals thanks to stm32f4xx_hal 's magic dual support. This is the first complete embedded-hal-1.0.0-rc3 example I have been able to put together. (CI at https://github.com/pdgilbert/rust-integration-testing/actions)

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

No branches or pull requests

1 participant