Add stm32f401 peripherals

This commit is contained in:
Dario Nieuwenhuis 2021-04-23 19:32:47 +02:00
parent 8f24daf096
commit 8fb1fc045f

View File

@ -135,6 +135,61 @@ use core::option::Option;
use hal::prelude::*; use hal::prelude::*;
use hal::rcc::Clocks; use hal::rcc::Clocks;
#[cfg(feature = "stm32f401")]
embassy_extras::std_peripherals! {
ADC_COMMON,
ADC1,
CRC,
DBGMCU,
EXTI,
FLASH,
IWDG,
OTG_FS_DEVICE,
OTG_FS_GLOBAL,
OTG_FS_HOST,
OTG_FS_PWRCLK,
PWR,
//RCC,
RTC,
SDIO,
SYSCFG,
TIM1,
TIM8,
TIM10,
TIM11,
TIM2,
//TIM3,
TIM4,
TIM5,
TIM9,
USART1,
USART2,
USART6,
WWDG,
DMA2,
DMA1,
GPIOH,
GPIOE,
GPIOD,
GPIOC,
GPIOB,
GPIOA,
I2C3,
I2C2,
I2C1,
I2S2EXT,
I2S3EXT,
SPI1,
SPI2,
SPI3,
SPI4,
FPU,
STK,
NVIC_STIR,
FPU_CPACR,
SCB_ACTRL,
}
#[cfg(feature = "stm32f446")] #[cfg(feature = "stm32f446")]
embassy_extras::std_peripherals! { embassy_extras::std_peripherals! {
DCMI, DCMI,