23#ifndef CONFIG_BOARD_HAS_LSE
24#define CONFIG_BOARD_HAS_LSE 1
28#ifndef CONFIG_BOARD_HAS_HSE
29#define CONFIG_BOARD_HAS_HSE 1
32#include "periph_cpu.h"
60#define VBAT_ADC ADC_LINE(6)
61#define ADC_NUMOF ARRAY_SIZE(adc_config)
71 .rcc_mask = RCC_APB1ENR_USART3EN,
85 .rcc_mask = RCC_APB2ENR_USART1EN,
99 .rcc_mask = RCC_APB1ENR_USART2EN,
113#define UART_0_ISR (isr_usart3)
114#define UART_0_DMA_ISR (isr_dma1_stream6)
115#define UART_1_ISR (isr_usart1)
116#define UART_1_DMA_ISR (isr_dma1_stream5)
117#define UART_2_ISR (isr_usart2)
118#define UART_2_DMA_ISR (isr_dma1_stream4)
120#define UART_NUMOF ARRAY_SIZE(uart_config)
130 .rcc_mask = RCC_APB2ENR_TIM1EN,
140 .rcc_mask = RCC_APB1ENR_TIM4EN,
150#define PWM_NUMOF ARRAY_SIZE(pwm_config)
168 .rccmask = RCC_APB2ENR_SPI1EN,
173#define SPI_NUMOF ARRAY_SIZE(spi_config)
182 .rcc_mask = RCC_APB1ENR_USBEN,
183 .irqn = USB_LP_CAN_RX0_IRQn,
195#define USBDEV_ISR isr_usb_lp_can_rx0
200#define USBDEV_NUMOF ARRAY_SIZE(stm32_usbdev_fs_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 stm32_usbdev_fs_config_t stm32_usbdev_fs_config[]
USB device FS configuration.
Common configuration for STM32 Timer peripheral based on TIM2.
@ GPIO_AF2
use alternate function 2
@ GPIO_AF5
use alternate function 5
@ GPIO_AF14
use alternate function 14
@ 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.
gpio_t pin
pin connected to the channel
PWM device configuration.
mini_timer_t * dev
Timer used.
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
stm32 USB device FS configuration
uintptr_t base_addr
USB peripheral base address.
UART device configuration.
USART_t * dev
pointer to the used UART device