macro_rules! new {
($bus:ident, $T:ty) => { ... };
}
Provides a method of generating a shared bus.
bus
- The actual bus that should be shared
T
- The full type of the bus that is being shared.
let bus: I2C = ();
let manager = shared_bus_rtic::new!(bus, I2C);
let device = Device::new(manager.acquire());