23#include "periph_cpu.h"
42#define DMA_0_ISR isr_dma1_channel2
43#define DMA_1_ISR isr_dma1_channel3
44#define DMA_2_ISR isr_dma1_channel7
45#define DMA_3_ISR isr_dma1_channel4
47#define DMA_NUMOF ARRAY_SIZE(dma_config)
57 .rcc_mask = RCC_APB1ENR_USART2EN,
64#ifdef MODULE_PERIPH_DMA
71 .rcc_mask = RCC_APB2ENR_USART1EN,
78#ifdef MODULE_PERIPH_DMA
85 .rcc_mask = RCC_APB1ENR_USART3EN,
92#ifdef MODULE_PERIPH_DMA
99#define UART_0_ISR (isr_usart2)
100#define UART_1_ISR (isr_usart1)
101#define UART_2_ISR (isr_usart3)
103#define UART_NUMOF ARRAY_SIZE(uart_config)
113 .rcc_mask = RCC_APB1ENR_TIM2EN,
123 .rcc_mask = RCC_APB1ENR_TIM3EN,
133#define PWM_NUMOF ARRAY_SIZE(pwm_config)
151 .rccmask = RCC_APB2ENR_SPI1EN,
153#ifdef MODULE_PERIPH_DMA
162#define SPI_NUMOF ARRAY_SIZE(spi_config)
178 .rcc_mask = RCC_APB1ENR_I2C1EN,
190 .rcc_mask = RCC_APB1ENR_I2C2EN,
196#define I2C_0_ISR isr_i2c1_ev
197#define I2C_1_ISR isr_i2c2_ev
199#define I2C_NUMOF ARRAY_SIZE(i2c_config)
215#define ADC_NUMOF ARRAY_SIZE(adc_config)
227#define DAC_NUMOF ARRAY_SIZE(dac_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
Common configuration for STM32 Timer peripheral based on TIM5.
@ GPIO_AF1
use alternate function 1
@ GPIO_AF2
use alternate function 2
@ GPIO_AF5
use alternate function 5
@ GPIO_AF4
use alternate function 4
@ GPIO_AF7
use alternate function 7
#define SPI_CS_UNDEF
Define value for unused CS line.
@ APB1
Advanced Peripheral Bus 1
@ APB2
Advanced Peripheral Bus 2
ADC device configuration.
DAC line configuration data.
gpio_t pin
pin connected to the line
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
UART device configuration.
USART_t * dev
pointer to the used UART device