rust-embedded / embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems
Apache License 2.0
1.95k stars 197 forks source link

Merge spi `ExclusiveDevice` implementations #477

Closed bugadani closed 1 year ago

bugadani commented 1 year ago

As a somewhat counter-proposal to #474 this PR merges the two different ExclusiveDevice implementations. I don't think there is any need in keeping them separate, especially when the async version implements the blocking SpiDevice trait. The separation also meant that bus access was implemented for the async version, but not the blocking-only one. This has now been fixed.