25 #include "periph_cpu.h"
37 #define CLOCK_HF cmuSelect_HFXO
39 #ifndef CLOCK_CORE_DIV
40 #define CLOCK_CORE_DIV cmuClkDiv_1
43 #define CLOCK_LFA cmuSelect_LFXO
46 #define CLOCK_LFB cmuSelect_LFXO
64 .input = adcSingleInputTemp,
65 .reference = adcRef1V25,
66 .acq_time = adcAcqTime8
70 .input = adcSingleInputVDDDiv3,
71 .reference = adcRef1V25,
72 .acq_time = adcAcqTime8
76 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
77 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
89 .loc = I2C_ROUTE_LOCATION_LOC1,
96 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
97 #define I2C_0_ISR isr_i2c0
104 #ifndef RTT_FREQUENCY
105 #define RTT_FREQUENCY (1U)
119 .loc = USART_ROUTE_LOCATION_LOC0,
120 .cmu = cmuClock_USART0,
121 .irq = USART0_RX_IRQn
125 #define SPI_NUMOF ARRAY_SIZE(spi_config)
138 .cmu = cmuClock_TIMER0
142 .cmu = cmuClock_TIMER1
149 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
150 #define TIMER_0_ISR isr_timer1
162 .loc = USART_ROUTE_LOCATION_LOC4,
163 .cmu = cmuClock_USART1,
164 .irq = USART1_RX_IRQn
170 .loc = LEUART_ROUTE_LOCATION_LOC0,
171 .cmu = cmuClock_LEUART0,
176 #define UART_NUMOF ARRAY_SIZE(uart_config)
177 #define UART_0_ISR_RX isr_usart1_rx
178 #define UART_1_ISR_RX isr_leuart0
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
static const uart_conf_t uart_config[]
UART configuration.
static const spi_conf_t spi_config[]
SPI configuration.
static const i2c_conf_t i2c_config[]
I2C configuration.
static const timer_conf_t timer_config[]
All timers on board.
static const adc_conf_t adc_config[]
ADC configuration.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
ADC channel configuration.
ADC device configuration.
ADC_TypeDef * dev
ADC device used.
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
SPI_t * dev
pointer to the used SPI device
SPI device configuration.
Timer device configuration.
timer_dev_t prescaler
the lower neighboring timer (not initialized for LETIMER)
void * dev
TIMER_TypeDef or LETIMER_TypeDef device used.
UART device configuration.
USART_t * dev
pointer to the used UART device