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

bumping to embedded-hal-1.0 #60

Open
hacknus opened this issue Oct 2, 2024 · 2 comments
Open

bumping to embedded-hal-1.0 #60

hacknus opened this issue Oct 2, 2024 · 2 comments

Comments

@hacknus
Copy link

hacknus commented Oct 2, 2024

Are there plans to bump this to embedded-hal-1.0?
I have not found an easy way to share an I2C and SPI bus between different tasks in embedded-hal-1.0 but it was super easy with shared-bus and embedded-hal-0.2 (I used freeRTOS).

Would be happy to help out!

@clintfred
Copy link

A PR exists to do this: #55

It's been sitting un-merged for quite some time, however.

@Sycrosity
Copy link

Sycrosity commented Oct 4, 2024

the PR is mine and the repo is here incase you want an alternative for the meantime with a Cargo.toml crates.io patch. However, if you are using embassy (or are fine with having embassy parts in your project), I'd recommend using an embassy_sync::Mutex instead (e.g. Mutex<NoopRawMutex, I2C<'static, esp_hal::peripherals::I2C0, Async>>)

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

3 participants