fix problems
This commit is contained in:
parent
7bee584808
commit
a9d9f3bf80
@ -30,8 +30,8 @@ async fn run(dp: stm32::Peripherals, cp: cortex_m::Peripherals) {
|
|||||||
let mut serial = serial::Serial::new(
|
let mut serial = serial::Serial::new(
|
||||||
gpioa.pa9.into_alternate_af7(),
|
gpioa.pa9.into_alternate_af7(),
|
||||||
gpioa.pa10.into_alternate_af7(),
|
gpioa.pa10.into_alternate_af7(),
|
||||||
interrupt::take!(DMA2_STREAM2),
|
|
||||||
interrupt::take!(DMA2_STREAM7),
|
interrupt::take!(DMA2_STREAM7),
|
||||||
|
interrupt::take!(DMA2_STREAM2),
|
||||||
interrupt::take!(USART1),
|
interrupt::take!(USART1),
|
||||||
dp.DMA2,
|
dp.DMA2,
|
||||||
dp.USART1,
|
dp.USART1,
|
||||||
|
@ -32,7 +32,7 @@ pub enum Priority {
|
|||||||
Level12 = 12,
|
Level12 = 12,
|
||||||
Level13 = 13,
|
Level13 = 13,
|
||||||
Level14 = 14,
|
Level14 = 14,
|
||||||
Level14 = 15,
|
Level15 = 15,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<u8> for Priority {
|
impl From<u8> for Priority {
|
||||||
|
Loading…
Reference in New Issue
Block a user