20#ifndef PERIPH_CONF_COMMON_H
21#define PERIPH_CONF_COMMON_H
24#ifndef CONFIG_BOARD_HAS_LSE
25#define CONFIG_BOARD_HAS_LSE 1
29#ifndef CONFIG_BOARD_HAS_HSE
30#define CONFIG_BOARD_HAS_HSE 1
33#ifndef CONFIG_CLOCK_HSE
34#define CONFIG_CLOCK_HSE MHZ(16)
37#include "periph_cpu.h"
54#define ADC_NUMOF ARRAY_SIZE(adc_config)
66#define DMA_0_ISR isr_dma1_channel4
67#define DMA_1_ISR isr_dma1_channel6
69#define DMA_NUMOF ARRAY_SIZE(dma_config)
80 .rcc_mask = RCC_APB1ENR_TIM2EN,
87 .rcc_mask = RCC_APB1ENR_TIM3EN,
93#define TIMER_0_ISR isr_tim2
94#define TIMER_1_ISR isr_tim3
96#define TIMER_NUMOF ARRAY_SIZE(timer_config)
106 .rcc_mask = RCC_APB2ENR_USART1EN,
111#ifdef MODULE_PERIPH_DMA
118 .rcc_mask = RCC_APB1ENR_USART2EN,
123#ifdef MODULE_PERIPH_DMA
130#define UART_0_ISR (isr_usart1)
131#define UART_1_ISR (isr_usart2)
133#define UART_NUMOF ARRAY_SIZE(uart_config)
141#define RTT_FREQUENCY (RTT_MAX_FREQUENCY)
156 .rcc_mask = RCC_APB1ENR_I2C1EN,
162#define I2C_0_ISR isr_i2c1_ev
164#define I2C_NUMOF ARRAY_SIZE(i2c_config)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
static const uart_conf_t uart_config[]
Static array with configuration for declared UART devices.
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
ADC device configuration.
int stream
DMA stream on stm32f2/4/7, channel on others STM32F2/4/7:
I2C configuration structure.
TWI_t * dev
Pointer to hardware module registers.
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.
UART device configuration.
USART_t * dev
pointer to the used UART device