This commit is contained in:
Dario Nieuwenhuis
2021-05-21 19:05:21 +02:00
parent 03bfbe51f5
commit 0d08e65235
506 changed files with 49419 additions and 9926 deletions

View File

@ -339,6 +339,18 @@ peripherals!(
PK15, RNG, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SYSCFG, USART1, USART2, USART3, USART6
);
pub fn DMA(n: u8) -> dma::Dma {
match n {
0 => DMA1,
_ => DMA2,
}
}
use embassy::interrupt::Interrupt;
use embassy::interrupt::InterruptExt;
impl_exti_irq!(EXTI0, EXTI1, EXTI15_10, EXTI2, EXTI3, EXTI4, EXTI9_5);
pub mod interrupt {
pub use cortex_m::interrupt::{CriticalSection, Mutex};
pub use embassy::interrupt::{declare, take, Interrupt};