rust-embedded / embedded-hal

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

bus/i2c: add RefCell, CriticalSection and Mutex shared bus implementations. #445

Closed Dirbaio closed 1 year ago

Dirbaio commented 1 year ago

Requires #440

Same as #443 but for I2C.

This adds a few bus sharing implementations, with varying tradeoffs:

Dirbaio commented 1 year ago

@eldruin done

bors[bot] commented 1 year ago

Build succeeded: