23 #include "periph_cpu.h"
35 #define CLOCK_HF cmuSelect_HFXO
37 #ifndef CLOCK_CORE_DIV
38 #define CLOCK_CORE_DIV cmuClkDiv_1
41 #define CLOCK_LFA cmuSelect_LFXO
44 #define CLOCK_LFB cmuSelect_LFXO
47 #define CLOCK_LFE cmuSelect_LFXO
65 .input = adcPosSelTEMP,
66 .reference = adcRef1V25,
67 .acq_time = adcAcqTime8
71 .input = adcPosSelAVDD,
72 .reference = adcRef5V,
73 .acq_time = adcAcqTime8
77 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
78 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
90 .loc = I2C_ROUTELOC0_SDALOC_LOC15 |
91 I2C_ROUTELOC0_SCLLOC_LOC15,
98 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
99 #define I2C_0_ISR isr_i2c0
106 #ifndef RTT_FREQUENCY
107 #define RTT_FREQUENCY (1U)
121 .loc = USART_ROUTELOC0_RXLOC_LOC1 |
122 USART_ROUTELOC0_TXLOC_LOC1 |
123 USART_ROUTELOC0_CLKLOC_LOC1,
124 .cmu = cmuClock_USART2,
125 .irq = USART2_RX_IRQn
129 #define SPI_NUMOF ARRAY_SIZE(spi_config)
142 .cmu = cmuClock_WTIMER0
146 .cmu = cmuClock_WTIMER1
154 .cmu = cmuClock_TIMER0
158 .cmu = cmuClock_TIMER1
166 .cmu = cmuClock_LETIMER0
170 .cmu = cmuClock_LETIMER0
172 .irq = LETIMER0_IRQn,
177 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
178 #define TIMER_0_ISR isr_wtimer1
179 #define TIMER_1_ISR isr_timer1
180 #define TIMER_2_ISR isr_letimer0
192 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
193 USART_ROUTELOC0_TXLOC_LOC0,
194 .cmu = cmuClock_USART0,
195 .irq = USART0_RX_IRQn
201 .loc = LEUART_ROUTELOC0_RXLOC_LOC18 |
202 LEUART_ROUTELOC0_TXLOC_LOC18,
203 .cmu = cmuClock_LEUART0,
208 #define UART_NUMOF ARRAY_SIZE(uart_config)
209 #define UART_0_ISR_RX isr_usart0_rx
210 #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