22 #include "periph_cpu.h"
41 #define DMA_0_ISR isr_dma1_channel2
42 #define DMA_1_ISR isr_dma1_channel3
43 #define DMA_2_ISR isr_dma1_channel7
44 #define DMA_3_ISR isr_dma1_channel4
46 #define DMA_NUMOF ARRAY_SIZE(dma_config)
56 .rcc_mask = RCC_APB1ENR_USART2EN,
63 #ifdef MODULE_PERIPH_DMA
70 .rcc_mask = RCC_APB2ENR_USART1EN,
77 #ifdef MODULE_PERIPH_DMA
84 .rcc_mask = RCC_APB1ENR_USART3EN,
91 #ifdef MODULE_PERIPH_DMA
98 #define UART_0_ISR (isr_usart2)
99 #define UART_1_ISR (isr_usart1)
100 #define UART_2_ISR (isr_usart3)
102 #define UART_NUMOF ARRAY_SIZE(uart_config)
112 .rcc_mask = RCC_APB1ENR_TIM2EN,
122 .rcc_mask = RCC_APB1ENR_TIM3EN,
132 #define PWM_NUMOF ARRAY_SIZE(pwm_config)
150 .rccmask = RCC_APB2ENR_SPI1EN,
152 #ifdef MODULE_PERIPH_DMA
161 #define SPI_NUMOF ARRAY_SIZE(spi_config)
177 .rcc_mask = RCC_APB1ENR_I2C1EN,
189 .rcc_mask = RCC_APB1ENR_I2C2EN,
195 #define I2C_0_ISR isr_i2c1_ev
196 #define I2C_1_ISR isr_i2c2_ev
198 #define I2C_NUMOF ARRAY_SIZE(i2c_config)
214 #define ADC_NUMOF ARRAY_SIZE(adc_config)
226 #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.
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 adc_conf_t adc_config[]
ADC configuration.
static const pwm_conf_t pwm_config[]
Actual PWM configuration.
static const dac_conf_t dac_config[]
DAC configuration.
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
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
#define CLOCK_APB1
Half AHB clock.
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