23 #ifndef CONFIG_BOARD_HAS_LSE
24 #define CONFIG_BOARD_HAS_LSE 1
27 #include "periph_cpu.h"
29 #include "cfg_rtt_default.h"
50 #define DMA_0_ISR isr_dma1_channel2
51 #define DMA_1_ISR isr_dma1_channel3
52 #define DMA_2_ISR isr_dma1_channel4
53 #define DMA_3_ISR isr_dma1_channel5
54 #define DMA_4_ISR isr_dma2_channel1
55 #define DMA_5_ISR isr_dma2_channel2
56 #define DMA_6_ISR isr_dma2_channel3
58 #define DMA_NUMOF ARRAY_SIZE(dma_config)
69 .rcc_mask = RCC_APB1ENR1_TIM5EN,
75 #define TIMER_0_ISR isr_tim5
77 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
87 .rcc_mask = RCC_APB2ENR_USART1EN,
96 #ifdef MODULE_PERIPH_DMA
103 .rcc_mask = RCC_APB1ENR1_UART4EN,
112 #ifdef MODULE_PERIPH_DMA
119 #define UART_0_ISR (isr_usart1)
120 #define UART_1_ISR (isr_uart4)
122 #define UART_NUMOF ARRAY_SIZE(uart_config)
132 .rcc_mask = RCC_APB1ENR1_TIM2EN,
142 #define PWM_NUMOF ARRAY_SIZE(pwm_config)
160 .rccmask = RCC_APB2ENR_SPI1EN,
162 #ifdef MODULE_PERIPH_DMA
179 .rccmask = RCC_APB1ENR1_SPI2EN,
181 #ifdef MODULE_PERIPH_DMA
198 .rccmask = RCC_APB1ENR1_SPI3EN,
200 #ifdef MODULE_PERIPH_DMA
209 #define SPI_NUMOF ARRAY_SIZE(spi_config)
225 .rcc_mask = RCC_APB1ENR1_I2C1EN,
226 .rcc_sw_mask = RCC_CCIPR_I2C1SEL_1,
227 .irqn = I2C1_ER_IRQn,
237 .rcc_mask = RCC_APB1ENR1_I2C2EN,
238 .rcc_sw_mask = RCC_CCIPR_I2C2SEL_1,
239 .irqn = I2C2_ER_IRQn,
243 #define I2C_0_ISR isr_i2c1_er
244 #define I2C_1_ISR isr_i2c2_er
246 #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.
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 pwm_conf_t pwm_config[]
Actual PWM configuration.
Common configuration for STM32 OTG FS peripheral.
@ GPIO_AF1
use alternate function 1
@ GPIO_AF5
use alternate function 5
@ GPIO_AF4
use alternate function 4
@ GPIO_AF8
use alternate function 8
@ GPIO_AF6
use alternate function 6
@ GPIO_AF7
use alternate function 7
@ STM32_USART
STM32 USART module type.
#define SPI_CS_UNDEF
Define value for unused CS line.
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
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.
PWM device configuration.
mini_timer_t * dev
Timer used.
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
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