Macro rp6::avr::device::pin::pin

source ·
macro_rules! pin {
    ($pin_group: ident, $mask_bit: expr) => { ... };
}
Expand description

Convenience macro to define a pin struct directly from the DDR, PORT and PIN Registers. Requires you to use Pin; and use register::*; from this module.

Example: To define pin::a0 from DDRA, PORTA and PINA registers, use pin!(A, a0, 0);.