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
62 .input = adcSingleInputTemp,
63 .reference = adcRef1V25,
64 .acq_time = adcAcqTime8
68 .input = adcSingleInputVDDDiv3,
69 .reference = adcRef1V25,
70 .acq_time = adcAcqTime8
74 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
75 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
90 static const dac_chan_conf_t dac_channel_config[] = {
97 #define DAC_DEV_NUMOF ARRAY_SIZE(dac_config)
98 #define DAC_NUMOF ARRAY_SIZE(dac_channel_config)
110 .loc = I2C_ROUTE_LOCATION_LOC2,
111 .cmu = cmuClock_I2C1,
117 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
118 #define I2C_0_ISR isr_i2c1
129 .loc = TIMER_ROUTE_LOCATION_LOC2
134 .loc = TIMER_ROUTE_LOCATION_LOC2
141 .cmu = cmuClock_TIMER0,
144 .channel = pwm_channel_config
148 #define PWM_DEV_NUMOF ARRAY_SIZE(pwm_config)
149 #define PWM_NUMOF ARRAY_SIZE(pwm_channel_config)
156 #ifndef RTT_FREQUENCY
157 #define RTT_FREQUENCY (1U)
171 .loc = USART_ROUTE_LOCATION_LOC1,
172 .cmu = cmuClock_USART1,
173 .irq = USART1_RX_IRQn
177 #define SPI_NUMOF ARRAY_SIZE(spi_config)
190 .cmu = cmuClock_TIMER1
194 .cmu = cmuClock_TIMER2
202 .cmu = cmuClock_LETIMER0
206 .cmu = cmuClock_LETIMER0
208 .irq = LETIMER0_IRQn,
213 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
214 #define TIMER_0_ISR isr_timer2
215 #define TIMER_1_ISR isr_letimer0
227 .loc = USART_ROUTE_LOCATION_LOC1,
228 .cmu = cmuClock_USART2,
229 .irq = USART2_RX_IRQn
235 .loc = LEUART_ROUTE_LOCATION_LOC0,
236 .cmu = cmuClock_LEUART0,
241 #define UART_NUMOF ARRAY_SIZE(uart_config)
242 #define UART_0_ISR_RX isr_usart2_rx
243 #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.
static const pwm_conf_t pwm_config[]
Actual PWM configuration.
static const dac_conf_t dac_config[]
DAC configuration.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
ADC channel configuration.
ADC device configuration.
ADC_TypeDef * dev
ADC device used.
DAC line configuration data.
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
PWM channel configuration.
uint8_t index
TIMER channel to use.
PWM device configuration.
mini_timer_t * dev
Timer used.
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