26 #include "periph_cpu.h"
47 .irqn = UART0_IRQ_IRQn
53 .irqn = UART1_IRQ_IRQn
57 #define UART_0_ISR (isr_uart0)
58 #define UART_1_ISR (isr_uart1)
60 #define UART_NUMOF ARRAY_SIZE(uart_config)
77 #define SPI_NUMOF ARRAY_SIZE(spi_config)
81 .
irqn = TIMER_IRQ_0_IRQn
84 .irqn = TIMER_IRQ_1_IRQn
87 .irqn = TIMER_IRQ_2_IRQn
90 .irqn = TIMER_IRQ_3_IRQn
97 .ch = timer0_channel_config,
102 #define TIMER_0_ISRA isr_timer0
103 #define TIMER_0_ISRB isr_timer1
104 #define TIMER_0_ISRC isr_timer2
105 #define TIMER_0_ISRD isr_timer3
107 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
117 { .pin =
GPIO_PIN(0, 27), .chan = 1},
118 { .pin =
GPIO_PIN(0, 28), .chan = 2},
121 #define ADC_NUMOF ARRAY_SIZE(adc_config)
131 #define I2C_NUMOF _periph_numof_is_unsigned_0()
144 .irqn0 = PIO0_IRQ_0_IRQn,
145 .irqn1 = PIO0_IRQ_1_IRQn
149 .irqn0 = PIO1_IRQ_0_IRQn,
150 .irqn1 = PIO1_IRQ_1_IRQn
154 #define PIO_0_ISR0 isr_pio00
155 #define PIO_0_ISR1 isr_pio01
156 #define PIO_1_ISR0 isr_pio10
157 #define PIO_1_ISR1 isr_pio11
159 #define PIO_NUMOF ARRAY_SIZE(pio_config)
161 #if defined(PIO_I2C_CONFIG) || defined(DOXYGEN)
174 #define PIO_I2C_NUMOF ARRAY_SIZE(pio_i2c_config)
176 #define pio_i2c_config ((pio_i2c_conf_t *)NULL)
188 { .pin =
GPIO_PIN(0, 25), .cc_chan = 1 },
194 #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 uart_conf_t uart_config[]
UART configuration.
static const spi_conf_t spi_config[]
SPI configuration.
static const timer_conf_t timer_config[]
All timers on board.
static const adc_conf_t adc_config[]
ADC configuration.
static const pwm_conf_t pwm_config[]
Actual PWM configuration.
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