pub unsafe fn new(pin: u32) -> Pinmux {
        let used_pins = USED_PINS.get();
        if used_pins & 1 << pin != 0 {
            panic!("Pin {} is already in use!", pin);
        } else {
            USED_PINS.set(used_pins | 1 << pin);
            Pinmux(pin)
        }
    }
/// Creates a new `Pinmux` wrapping the numbered pin.
///
/// # Panics
///
/// If a `Pinmux` for this pin has already
/// been created.
///
Creates a new `Pinmux` wrapping the numbered pin.
Creates a new ` Pinmux ` wrapping the numbered pin .
pub unsafe fn new(pin: u32) -> Pinmux {
        let used_pins = USED_PINS.get();
        if used_pins & 1 << pin != 0 {
            panic!("Pin {} is already in use!", pin);
        } else {
            USED_PINS.set(used_pins | 1 << pin);
            Pinmux(pin)
        }
    }
pub unsafe fn new ( pin : u32 ) -> Pinmux { let used_pins = USED_PINS . get ( ) ; if used_pins & 1 << pin != 0 { panic ! ( " " pin ) ; } else { USED_PINS . set ( used_pins | 1 << pin ) ; Pinmux ( pin ) } }
Creates a new `Pinmux` wrapping the numbered pin.
Creates a new ` Pinmux ` wrapping the numbered pin .
pin
u32
pin
u32
panics
If a `Pinmux` for this pin has already
been created.
If a ` Pinmux ` for this pin has already been created .