22#include "periph_cpu.h"
33#define XTIMER_DEV TIMER_DEV(1)
34#define XTIMER_CHAN (0)
41#define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
42#define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(1)
44#define CONFIG_ZTIMER_USEC_MIN (10)
52#define AT86RF2XX_PARAM_CS GPIO_PIN(PB, 31)
53#define AT86RF2XX_PARAM_INT GPIO_PIN(PB, 0)
54#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PA, 20)
55#define AT86RF2XX_PARAM_RESET GPIO_PIN(PB, 15)
61#define LED0_PIN GPIO_PIN(0, 19)
63#define LED_PORT PORT->Group[0]
64#define LED0_MASK (1 << 19)
66#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
67#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
68#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
75#define BTN0_PIN GPIO_PIN(0, 28)
76#define BTN0_MODE GPIO_IN_PU
83#define RFCTL1_PIN GPIO_PIN(0, 9)
84#define RFCTL2_PIN GPIO_PIN(0, 12)
99#ifndef RFCTL_ANTENNA_DEFAULT
100#define RFCTL_ANTENNA_DEFAULT RFCTL_ANTENNA_BOARD
Configuration of CPU peripherals for the Atmel SAM R21 Xplained Pro board.
Low-level GPIO peripheral driver interface definitions.
void board_antenna_config(uint8_t antenna)
Set antenna switch.