diff --git a/embassy-stm32f4-examples/src/serial.rs b/embassy-stm32f4-examples/src/serial.rs index 6c757dd2f..baed2e525 100644 --- a/embassy-stm32f4-examples/src/serial.rs +++ b/embassy-stm32f4-examples/src/serial.rs @@ -30,8 +30,8 @@ async fn run(dp: stm32::Peripherals, cp: cortex_m::Peripherals) { let mut serial = serial::Serial::new( gpioa.pa9.into_alternate_af7(), gpioa.pa10.into_alternate_af7(), - interrupt::take!(DMA2_STREAM2), interrupt::take!(DMA2_STREAM7), + interrupt::take!(DMA2_STREAM2), interrupt::take!(USART1), dp.DMA2, dp.USART1, diff --git a/embassy-stm32f4/src/interrupt.rs b/embassy-stm32f4/src/interrupt.rs index 6cc90f66d..64f0a6467 100644 --- a/embassy-stm32f4/src/interrupt.rs +++ b/embassy-stm32f4/src/interrupt.rs @@ -32,7 +32,7 @@ pub enum Priority { Level12 = 12, Level13 = 13, Level14 = 14, - Level14 = 15, + Level15 = 15, } impl From for Priority {