samr30-xpro/include/board.h¶
Board specific definitions for the Atmel SAM R30 Xplained Pro board.
-
AT86RF2XX_PARAM_SPI¶ 1
SPI_DEV(0)
-
AT86RF2XX_PARAM_CS¶ 1
GPIO_PIN(PB, 31)
-
AT86RF2XX_PARAM_INT¶ 1
GPIO_PIN(PB, 0)
-
AT86RF2XX_PARAM_SLEEP¶ 1
GPIO_PIN(PA, 20)
-
AT86RF2XX_PARAM_RESET¶ 1
GPIO_PIN(PB, 15)
-
AT86RF2XX_PARAM_SPI_CLK¶ 1
SPI_CLK_5MHZ
-
LED_PORT¶ 1
PORT->Group[0]
-
LED0_PIN¶ 1
GPIO_PIN(PA, 18)
-
LED0_MASK¶ 1
(1 << 18)
-
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)
-
LED1_PIN¶ 1
GPIO_PIN(PA, 19)
-
LED1_MASK¶ 1
(1 << 19)
-
LED1_ON¶ 1
(LED_PORT.OUTCLR.reg = LED1_MASK)
-
LED1_OFF¶ 1
(LED_PORT.OUTSET.reg = LED1_MASK)
-
LED1_TOGGLE¶ 1
(LED_PORT.OUTTGL.reg = LED1_MASK)
-
BTN0_PORT¶ 1
PORT->Group[0]
-
BTN0_PIN¶ 1
GPIO_PIN(PA, 28)
-
BTN0_MODE¶ 1
GPIO_IN_PU
-
void
board_init(void)¶ Initialize board specific hardware, including clock, LEDs and std-IO.