24 #include "periph_cpu.h"
26 #include "board_module.h"
37 #define CLOCK_HF cmuSelect_HFXO
39 #ifndef CLOCK_CORE_DIV
40 #define CLOCK_CORE_DIV cmuClkDiv_1
43 #define CLOCK_LFA cmuSelect_LFRCO
46 #define CLOCK_LFB cmuSelect_LFRCO
49 #define CLOCK_LFE cmuSelect_LFRCO
67 .input = adcPosSelTEMP,
68 .reference = adcRef1V25,
69 .acq_time = adcAcqTime8
73 .input = adcPosSelAVDD,
74 .reference = adcRef5V,
75 .acq_time = adcAcqTime8
79 #define ADC_DEV_NUMOF ARRAY_SIZE(adc_config)
80 #define ADC_NUMOF ARRAY_SIZE(adc_channel_config)
90 .sda_pin = MODULE_PIN_P13,
91 .scl_pin = MODULE_PIN_P12,
92 .loc = I2C_ROUTELOC0_SDALOC_LOC16 |
93 I2C_ROUTELOC0_SCLLOC_LOC14,
100 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
101 #define I2C_0_ISR isr_i2c0
108 #ifndef RTT_FREQUENCY
109 #define RTT_FREQUENCY (1U)
120 .mosi_pin = MODULE_PIN_F16,
121 .miso_pin = MODULE_PIN_P3,
122 .clk_pin = MODULE_PIN_F15,
123 .loc = USART_ROUTELOC0_RXLOC_LOC11 |
124 USART_ROUTELOC0_TXLOC_LOC11 |
125 USART_ROUTELOC0_CLKLOC_LOC11,
126 .cmu = cmuClock_USART1,
127 .irq = USART1_RX_IRQn
131 #define SPI_NUMOF ARRAY_SIZE(spi_config)
144 .cmu = cmuClock_TIMER0
148 .cmu = cmuClock_TIMER1
156 .cmu = cmuClock_LETIMER0
160 .cmu = cmuClock_LETIMER0
162 .irq = LETIMER0_IRQn,
167 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
168 #define TIMER_0_ISR isr_timer1
169 #define TIMER_1_ISR isr_letimer0
179 .rx_pin = MODULE_PIN_F7,
180 .tx_pin = MODULE_PIN_F6,
181 .loc = USART_ROUTELOC0_RXLOC_LOC0 |
182 USART_ROUTELOC0_TXLOC_LOC0,
183 .cmu = cmuClock_USART0,
184 .irq = USART0_RX_IRQn
188 #define UART_NUMOF ARRAY_SIZE(uart_config)
189 #define UART_0_ISR_RX isr_usart0_rx
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