Crate for sharing buses between multiple devices
WriteIter
and WriteIterRead
traits from embedded-hal
(#53 by @thejpster).cortex-m
0.7.atomic-polyfill
1.0.xtensa-lx
0.8 (#49 by @jscatena88).embedded-hal
alpha 8 version (eh-alpha
feature flag) (#36).atomic-polyfill
dependency being pulled in even in cases where it is not used.embedded-hal
dependency.BusManagerAtomicCheck
for details.I2cProxy
and SpiProxy
now implement Clone
. Cloning a proxy might be useful if a driver wants to split bus access up even further internally without wrapping the bus-proxy in another bus-manager.Complete rework of the crate, most items have changed at least slightly. Please read the updated documentation to understand how the new version works.
BusMutexSimple
for sharing within a single task/thread with minimal overhead.'static
.BusMutex
trait's lock()
method now passes &mut
to the closure, removing the RefCell
from the manager.BusMutex
was moved into an associated type.!Send
to make sure it can only be used from within a single thread/task.