19#ifndef CONFIG_BOARD_HAS_LSE
20#define CONFIG_BOARD_HAS_LSE 1
24#ifndef CONFIG_BOARD_HAS_HSE
25#define CONFIG_BOARD_HAS_HSE 1
28#include "periph_cpu.h"
56#define VBAT_ADC ADC_LINE(6)
57#define ADC_NUMOF ARRAY_SIZE(adc_config)
67 .rcc_mask = RCC_APB1ENR_USART3EN,
81 .rcc_mask = RCC_APB2ENR_USART1EN,
95 .rcc_mask = RCC_APB1ENR_USART2EN,
109#define UART_0_ISR (isr_usart3)
110#define UART_0_DMA_ISR (isr_dma1_stream6)
111#define UART_1_ISR (isr_usart1)
112#define UART_1_DMA_ISR (isr_dma1_stream5)
113#define UART_2_ISR (isr_usart2)
114#define UART_2_DMA_ISR (isr_dma1_stream4)
116#define UART_NUMOF ARRAY_SIZE(uart_config)
126 .rcc_mask = RCC_APB2ENR_TIM1EN,
136 .rcc_mask = RCC_APB1ENR_TIM4EN,
146#define PWM_NUMOF ARRAY_SIZE(pwm_config)
164 .rccmask = RCC_APB2ENR_SPI1EN,
169#define SPI_NUMOF ARRAY_SIZE(spi_config)
177 .base_addr = (uintptr_t)USB,
178 .rcc_mask = RCC_APB1ENR_USBEN,
179 .irqn = USB_LP_CAN_RX0_IRQn,
191#define USBDEV_ISR isr_usb_lp_can_rx0
196#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.
PWM device configuration.
SPI device configuration.
stm32 USB device FS configuration
UART device configuration.