samd21-xpro/include/board.h

Board specific definitions for the Atmel SAM D21 Xplained Pro board.

XTIMER_DEV
1
TIMER_DEV(1)
XTIMER_CHAN
1
(0)
LED0_PIN
1
GPIO_PIN(PB, 30)
LED_PORT
1
PORT->Group[PB]
LED0_MASK
1
(1 << 30)
LED0_ON
1
(LED_PORT.OUTCLR.reg = LED0_MASK)
LED0_OFF
1
(LED_PORT.OUTSET.reg = LED0_MASK)
LED0_TOGGLE
1
(LED_PORT.OUTTGL.reg = LED0_MASK)
BTN0_PORT
1
PORT->Group[PA]
BTN0_PIN
1
GPIO_PIN(PA, 15)
BTN0_MODE
1
GPIO_IN_PU
void board_init(void)

Initialize board specific hardware, including clock, LEDs and std-IO.