25 #include "periph_cpu.h"
36 #define XTIMER_DEV TIMER_DEV(1)
37 #define XTIMER_CHAN (0)
44 #define CONFIG_ZTIMER_USEC_TYPE ZTIMER_TYPE_PERIPH_TIMER
45 #define CONFIG_ZTIMER_USEC_DEV TIMER_DEV(1)
47 #define CONFIG_ZTIMER_USEC_MIN (10)
55 #define AT86RF2XX_PARAM_CS GPIO_PIN(PB, 31)
56 #define AT86RF2XX_PARAM_INT GPIO_PIN(PB, 0)
57 #define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PA, 20)
58 #define AT86RF2XX_PARAM_RESET GPIO_PIN(PB, 15)
64 #define LED0_PIN GPIO_PIN(0, 19)
66 #define LED_PORT PORT->Group[0]
67 #define LED0_MASK (1 << 19)
69 #define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
70 #define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
71 #define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
78 #define BTN0_PIN GPIO_PIN(0, 28)
79 #define BTN0_MODE GPIO_IN_PU
86 #define RFCTL1_PIN GPIO_PIN(0, 9)
87 #define RFCTL2_PIN GPIO_PIN(0, 12)
102 #ifndef RFCTL_ANTENNA_DEFAULT
103 #define RFCTL_ANTENNA_DEFAULT RFCTL_ANTENNA_BOARD
Peripheral MCU configuration for the Zigduino board.
Low-level GPIO peripheral driver interface definitions.
void board_antenna_config(uint8_t antenna)
Set antenna switch.