22#include "periph_cpu.h"
33 .irqn = UART0_IRQ_IRQn
39 .irqn = UART1_IRQ_IRQn
43#define UART_0_ISR (isr_uart0)
44#define UART_1_ISR (isr_uart1)
46#define UART_NUMOF ARRAY_SIZE(uart_config)
63#define SPI_NUMOF ARRAY_SIZE(spi_config)
67 .irqn = TIMER_IRQ_0_IRQn
70 .irqn = TIMER_IRQ_1_IRQn
73 .irqn = TIMER_IRQ_2_IRQn
76 .irqn = TIMER_IRQ_3_IRQn
83 .ch = timer0_channel_config,
88#define TIMER_0_ISRA isr_timer0
89#define TIMER_0_ISRB isr_timer1
90#define TIMER_0_ISRC isr_timer2
91#define TIMER_0_ISRD isr_timer3
93#define TIMER_NUMOF ARRAY_SIZE(timer_config)
102 { .pin =
GPIO_PIN(0, 26), .chan = 0},
103 { .pin =
GPIO_PIN(0, 27), .chan = 1},
104 { .pin =
GPIO_PIN(0, 28), .chan = 2},
107#define ADC_NUMOF ARRAY_SIZE(adc_config)
119#define I2C_NUMOF PIO_I2C_NUMOF
132 .irqn0 = PIO0_IRQ_0_IRQn,
133 .irqn1 = PIO0_IRQ_1_IRQn
137 .irqn0 = PIO1_IRQ_0_IRQn,
138 .irqn1 = PIO1_IRQ_1_IRQn
142#define PIO_0_ISR0 isr_pio00
143#define PIO_0_ISR1 isr_pio01
144#define PIO_1_ISR0 isr_pio10
145#define PIO_1_ISR1 isr_pio11
147#define PIO_NUMOF ARRAY_SIZE(pio_config)
173#define PIO_I2C_NUMOF ARRAY_SIZE(pio_i2c_config)
184 { .pin =
GPIO_PIN(0, 25), .cc_chan = 1 },
190#define PWM_NUMOF ARRAY_SIZE(pwm_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
static const pio_conf_t pio_config[]
Array of PIO configurations.
static const pio_i2c_conf_t pio_i2c_config[]
PIO I2C configuration.
#define ARRAY_SIZE(a)
Calculate the number of elements in a static array.
#define UART0
UART0 register bank.
#define UART1
UART1 register bank.
Common macros and compiler attributes/pragmas configuration.
ADC device configuration.
PIO I2C configuration type.
PWM device configuration.
SPI device configuration.
Configuration type of a timer channel.
Timer device configuration.
UART device configuration.