simplify impl. and add interupt idea

This commit is contained in:
xoviat
2021-01-01 14:59:57 -06:00
parent d5cb9bebaa
commit 2ee2d18465
2 changed files with 67 additions and 151 deletions

View File

@ -32,6 +32,7 @@ async fn run(dp: stm32::Peripherals, cp: cortex_m::Peripherals) {
gpioa.pa10.into_alternate_af7(),
interrupt::take!(DMA2_STREAM2),
interrupt::take!(DMA2_STREAM7),
interrupt::take!(USART1),
dp.DMA2,
dp.USART1,
config::Parity::ParityNone,