25#include "periph_cpu.h"
27#include "board_module.h"
38#define CLOCK_HF cmuSelect_HFXO
41#define CLOCK_CORE_DIV cmuClkDiv_1
44#define CLOCK_LFA cmuSelect_LFRCO
47#define CLOCK_LFB cmuSelect_LFRCO
50#define CLOCK_LFE cmuSelect_LFRCO
68 .input = adcPosSelTEMP,
69 .reference = adcRef1V25,
70 .acq_time = adcAcqTime8
74 .input = adcPosSelAVDD,
75 .reference = adcRef5V,
76 .acq_time = adcAcqTime8
80#define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
81#define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
91 .sda_pin = MODULE_PIN_P13,
92 .scl_pin = MODULE_PIN_P12,
93 .loc = I2C_ROUTELOC0_SDALOC_LOC16 |
94 I2C_ROUTELOC0_SCLLOC_LOC14,
101#define I2C_NUMOF ARRAY_SIZE(i2c_config)
102#define I2C_0_ISR isr_i2c0
110#define RTT_FREQUENCY (1U)
121 .mosi_pin = MODULE_PIN_F16,
122 .miso_pin = MODULE_PIN_P3,
123 .clk_pin = MODULE_PIN_F15,
124 .loc = USART_ROUTELOC0_RXLOC_LOC11 |
125 USART_ROUTELOC0_TXLOC_LOC11 |
126 USART_ROUTELOC0_CLKLOC_LOC11,
127 .cmu = cmuClock_USART1,
128 .irq = USART1_RX_IRQn
132#define SPI_NUMOF ARRAY_SIZE(spi_config)
145 .cmu = cmuClock_TIMER0
149 .cmu = cmuClock_TIMER1
157 .cmu = cmuClock_LETIMER0
161 .cmu = cmuClock_LETIMER0
163 .irq = LETIMER0_IRQn,
168#define TIMER_NUMOF ARRAY_SIZE(timer_config)
169#define TIMER_0_ISR isr_timer1
170#define TIMER_1_ISR isr_letimer0
180 .rx_pin = MODULE_PIN_F7,
181 .tx_pin = MODULE_PIN_F6,
182 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
183 USART_ROUTELOC0_TXLOC_LOC0,
184 .cmu = cmuClock_USART0,
185 .irq = USART0_RX_IRQn
189#define UART_NUMOF ARRAY_SIZE(uart_config)
190#define UART_0_ISR_RX isr_usart0_rx
@ 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 device configuration.
USART_TypeDef * dev
USART device used.
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