ryan-summers / shared-bus-rtic

Provides macros and type definitions for using shared-bus in an RTIC application
MIT License
16 stars 3 forks source link

Update to embedded_hal-1.0.0 alpha #9

Closed natrow closed 1 month ago

natrow commented 1 year ago

Could this crate be updated to support the current embedded_hal-1.0.0 alphas? There's also a new SpiDevice interface that would allow a safer implementation of a shared bus using dedicated CS pins.

ryan-summers commented 1 year ago

I'm happy to accept a PR for a new opt-in feature, but I do not want to adopt 1.0.0 of the e-h as the default until it is formally released.

snorkman88 commented 2 months ago

Hi @natrow! Since e-h has already been released on Jan, 1st I think think you can open the PR now.

ryan-summers commented 2 months ago

Actually, with the advent of embedded-hal v1.0, this crate is no longer needed. embedded-hal-bus handles the synchronization mechanisms required. I even added in support for the RTIC mutexes directly:

I should update the README to point to these newer tools.

snorkman88 commented 2 months ago

Thanks for the heads-up and for your collaboration.