[][src]Macro shared_bus_rtic::new

macro_rules! new {
    ($bus:ident, $T:ty) => { ... };
}

Provides a method of generating a shared bus.

Args:

  • bus - The actual bus that should be shared
  • T - The full type of the bus that is being shared.

Example:

let bus: I2C = ();
let manager = shared_bus_rtic::new!(bus, I2C);

let device = Device::new(manager.acquire());