25#include "periph_cpu.h"
46 .irqn = UART0_IRQ_IRQn
52 .irqn = UART1_IRQ_IRQn
56#define UART_0_ISR (isr_uart0)
57#define UART_1_ISR (isr_uart1)
59#define UART_NUMOF ARRAY_SIZE(uart_config)
76#define SPI_NUMOF ARRAY_SIZE(spi_config)
80 .
irqn = TIMER_IRQ_0_IRQn
83 .irqn = TIMER_IRQ_1_IRQn
86 .irqn = TIMER_IRQ_2_IRQn
89 .irqn = TIMER_IRQ_3_IRQn
96 .ch = timer0_channel_config,
101#define TIMER_0_ISRA isr_timer0
102#define TIMER_0_ISRB isr_timer1
103#define TIMER_0_ISRC isr_timer2
104#define TIMER_0_ISRD isr_timer3
106#define TIMER_NUMOF ARRAY_SIZE(timer_config)
116 { .pin =
GPIO_PIN(0, 27), .chan = 1},
117 { .pin =
GPIO_PIN(0, 28), .chan = 2},
120#define ADC_NUMOF ARRAY_SIZE(adc_config)
130#define I2C_NUMOF _periph_numof_is_unsigned_0()
143 .irqn0 = PIO0_IRQ_0_IRQn,
144 .irqn1 = PIO0_IRQ_1_IRQn
148 .irqn0 = PIO1_IRQ_0_IRQn,
149 .irqn1 = PIO1_IRQ_1_IRQn
153#define PIO_0_ISR0 isr_pio00
154#define PIO_0_ISR1 isr_pio01
155#define PIO_1_ISR0 isr_pio10
156#define PIO_1_ISR1 isr_pio11
158#define PIO_NUMOF ARRAY_SIZE(pio_config)
160#if defined(PIO_I2C_CONFIG) || defined(DOXYGEN)
173#define PIO_I2C_NUMOF ARRAY_SIZE(pio_i2c_config)
175#define pio_i2c_config ((pio_i2c_conf_t *)NULL)
187 { .pin =
GPIO_PIN(0, 25), .cc_chan = 1 },
193#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 unsigned _periph_numof_is_unsigned_0(void)
Silences the warning when an unsigned value is compared to 0.
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.
gpio_t pin
pin connected to the channel
PIO0_Type * dev
PIO device.
PIO I2C configuration type.
PWM device configuration.
uint8_t pwm_slice
PWM slice instance, must be < to PWM_SLICE_NUMOF.
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
Configuration type of a timer channel.
IRQn_Type irqn
timer channel interrupt number
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.
UART device configuration.
USART_t * dev
pointer to the used UART device