Skip to main content

impl_gpio_pin

Macro impl_gpio_pin 

Source
macro_rules! impl_gpio_pin {
    ($pin:ident, $peripheral:expr, $n:expr, $interrupt:ident) => { ... };
    ($PIN:ident, $PIN_TAKEN:ident, $peripheral:expr, $num:expr, NONE) => { ... };
    ($PIN:ident, $PIN_TAKEN:ident, $peripheral:expr, $num:expr, $interrupt:ident) => { ... };
}
Expand description

This macro is used to define a GPIO pin.

It does not actually guard against defining the same resource multiple times, so be careful.