saml21-xpro/include/board.h

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

LED0_PIN
1
GPIO_PIN(1, 10)
LED_PORT
1
PORT->Group[1]
LED0_MASK
1
(1 << 10)
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, 2)
BTN0_MODE
1
GPIO_IN_PU
void board_init(void)

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