21 #ifndef COSA_IO_PIN_HH 22 #define COSA_IO_PIN_HH 34 } __attribute__((packed));
57 __attribute__((always_inline))
72 __attribute__((always_inline))
84 __attribute__((always_inline))
86 volatile uint8_t* ddr =
DDR(
pin);
102 __attribute__((always_inline))
static uint8_t MASK(uint8_t pin)
static void mode(Board::DigitalPin pin, Mode mode)
IOPin(Board::DigitalPin pin, Mode mode=INPUT_MODE, bool pullup=false)
volatile uint8_t * PORT() const
static Mode mode(Board::DigitalPin pin)
volatile uint8_t * DDR() const