This commit is contained in:
Dario Nieuwenhuis 2021-05-21 19:35:15 +02:00
parent 35f1f65670
commit 447e4e6023
505 changed files with 16080 additions and 20606 deletions

View File

@ -503,3 +503,4 @@
#[cfg_attr(feature = "stm32l4s9zi", path = "stm32l4s9zi.rs")] #[cfg_attr(feature = "stm32l4s9zi", path = "stm32l4s9zi.rs")]
mod chip; mod chip;
pub use chip::*; pub use chip::*;
pub(crate) mod regs;

File diff suppressed because it is too large Load Diff

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -181,16 +181,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -201,19 +198,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -189,16 +189,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -209,19 +206,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -189,16 +189,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -209,19 +206,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -189,16 +189,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -209,19 +206,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -189,16 +189,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -209,19 +206,13 @@ peripherals!(
PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9,
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6 PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -120,16 +120,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -138,19 +135,13 @@ peripherals!(
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6 PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -120,16 +120,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -138,19 +135,13 @@ peripherals!(
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6 PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -120,16 +120,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -138,19 +135,13 @@ peripherals!(
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6 PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -120,16 +120,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -138,19 +135,13 @@ peripherals!(
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6 PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -113,16 +113,13 @@ impl_usart_pin!(USART2, RtsPin, PA1, 7);
impl_usart_pin!(USART2, TxPin, PA2, 7); impl_usart_pin!(USART2, TxPin, PA2, 7);
impl_usart_pin!(USART2, RxPin, PA3, 7); impl_usart_pin!(USART2, RxPin, PA3, 7);
impl_usart_pin!(USART2, CkPin, PA4, 7); impl_usart_pin!(USART2, CkPin, PA4, 7);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -131,19 +128,13 @@ peripherals!(
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -113,16 +113,13 @@ impl_usart_pin!(USART2, RtsPin, PA1, 7);
impl_usart_pin!(USART2, TxPin, PA2, 7); impl_usart_pin!(USART2, TxPin, PA2, 7);
impl_usart_pin!(USART2, RxPin, PA3, 7); impl_usart_pin!(USART2, RxPin, PA3, 7);
impl_usart_pin!(USART2, CkPin, PA4, 7); impl_usart_pin!(USART2, CkPin, PA4, 7);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -131,19 +128,13 @@ peripherals!(
PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, PH0, PH1, PH2, PH3, PH4, PH5,
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2 PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SYSCFG, USART1, USART2
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -208,16 +208,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -229,19 +226,13 @@ peripherals!(
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -208,16 +208,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -229,19 +226,13 @@ peripherals!(
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -208,16 +208,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -229,19 +226,13 @@ peripherals!(
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -208,16 +208,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -229,19 +226,13 @@ peripherals!(
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -208,16 +208,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -229,19 +226,13 @@ peripherals!(
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -208,16 +208,13 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -229,19 +226,13 @@ peripherals!(
PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, PH10, PH11, PH12, PH13, PH14, PH15, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -168,17 +168,14 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -188,19 +185,13 @@ peripherals!(
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5,
SYSCFG, USART1, USART2, USART3, USART6 SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -168,17 +168,14 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -188,19 +185,13 @@ peripherals!(
PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, PH6, PH7, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5,
SYSCFG, USART1, USART2, USART3, USART6 SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -197,17 +197,14 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -218,19 +215,13 @@ peripherals!(
PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG,
USART1, USART2, USART3, USART6 USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -197,17 +197,14 @@ impl_usart_pin!(USART6, RxPin, PA12, 8);
impl_usart_pin!(USART6, TxPin, PC6, 8); impl_usart_pin!(USART6, TxPin, PC6, 8);
impl_usart_pin!(USART6, RxPin, PC7, 8); impl_usart_pin!(USART6, RxPin, PC7, 8);
impl_usart_pin!(USART6, CkPin, PC8, 8); impl_usart_pin!(USART6, CkPin, PC8, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -218,19 +215,13 @@ peripherals!(
PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, PH8, PH9, PH10, PH11, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG,
USART1, USART2, USART3, USART6 USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -267,17 +267,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -291,19 +288,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -267,17 +267,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -291,19 +288,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -267,17 +267,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -291,19 +288,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -267,17 +267,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -291,19 +288,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -254,17 +254,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -277,19 +274,13 @@ peripherals!(
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6 PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -254,17 +254,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -277,19 +274,13 @@ peripherals!(
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6 PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -255,17 +255,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -279,19 +276,13 @@ peripherals!(
PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12, PH12, PH13, PH14, PH15, PI0, PI1, PI2, PI3, PI4, PI5, PI6, PI7, PI8, PI9, PI10, PI11, PI12,
PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6 PI13, PI14, PI15, RNG, SPI1, SPI2, SPI3, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -254,17 +254,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -277,19 +274,13 @@ peripherals!(
PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11, PG11, PG12, PG13, PG14, PG15, PH0, PH1, PH2, PH3, PH4, PH5, PH6, PH7, PH8, PH9, PH10, PH11,
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6 PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -270,17 +270,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -294,19 +291,13 @@ peripherals!(
PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, PH12, PH13, PH14, PH15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3,
USART6 USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -307,17 +307,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -333,19 +330,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -307,17 +307,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -333,19 +330,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -307,17 +307,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -333,19 +330,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -307,17 +307,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -333,19 +330,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -307,17 +307,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -333,19 +330,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -312,17 +312,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -338,19 +335,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

View File

@ -299,17 +299,14 @@ impl_usart_pin!(USART6, CtsPin, PG15, 8);
impl_usart_pin!(USART6, CkPin, PG7, 8); impl_usart_pin!(USART6, CkPin, PG7, 8);
impl_usart_pin!(USART6, RtsPin, PG8, 8); impl_usart_pin!(USART6, RtsPin, PG8, 8);
impl_usart_pin!(USART6, RxPin, PG9, 8); impl_usart_pin!(USART6, RxPin, PG9, 8);
pub use regs::dma_v2 as dma; pub use super::regs::dma_v2 as dma;
pub use regs::exti_v1 as exti; pub use super::regs::exti_v1 as exti;
pub use regs::gpio_v2 as gpio; pub use super::regs::gpio_v2 as gpio;
pub use regs::rng_v1 as rng; pub use super::regs::rng_v1 as rng;
pub use regs::spi_v1 as spi; pub use super::regs::spi_v1 as spi;
pub use regs::syscfg_f4 as syscfg; pub use super::regs::syscfg_f4 as syscfg;
pub use regs::usart_v1 as usart; pub use super::regs::usart_v1 as usart;
mod regs; embassy_extras::peripherals!(
use embassy_extras::peripherals;
pub use regs::generic;
peripherals!(
EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12, EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI5, EXTI6, EXTI7, EXTI8, EXTI9, EXTI10, EXTI11, EXTI12,
EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6, EXTI13, EXTI14, EXTI15, DMA1_CH0, DMA1_CH1, DMA1_CH2, DMA1_CH3, DMA1_CH4, DMA1_CH5, DMA1_CH6,
DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI, DMA1_CH7, DMA2_CH0, DMA2_CH1, DMA2_CH2, DMA2_CH3, DMA2_CH4, DMA2_CH5, DMA2_CH6, DMA2_CH7, EXTI,
@ -325,19 +322,13 @@ peripherals!(
PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14, PJ14, PJ15, PK0, PK1, PK2, PK3, PK4, PK5, PK6, PK7, PK8, PK9, PK10, PK11, PK12, PK13, PK14,
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6 PK15, RNG, SPI1, SPI2, SPI3, SPI4, SYSCFG, USART1, USART2, USART3, USART6
); );
pub fn DMA(n: u8) -> dma::Dma { pub fn DMA(n: u8) -> dma::Dma {
match n { match n {
0 => DMA1, 0 => DMA1,
_ => DMA2, _ => DMA2,
} }
} }
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5); impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt { pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex}; pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt}; pub use embassy::interrupt::{declare, take, Interrupt};

Some files were not shown because too many files have changed in this diff Show More