Skip to content

Commit da2ded9

Browse files
sprhawkteskje
authored andcommitted
remove USART4/5
should be UART4/5, and missing implementation
1 parent 5684aaa commit da2ded9

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

src/dma.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -540,18 +540,3 @@ on_channel!(dma1,
540540
serial::Rx<pac::USART3> => C3,
541541
serial::Tx<pac::USART3> => C2,
542542
);
543-
544-
#[cfg(any(
545-
feature = "stm32f302xb",
546-
feature = "stm32f302xc",
547-
feature = "stm32f302xd",
548-
feature = "stm32f302xe",
549-
feature = "stm32f303xb",
550-
feature = "stm32f303xc",
551-
feature = "stm32f303xd",
552-
feature = "stm32f303xe",
553-
))]
554-
on_channel!(dma2,
555-
serial::Rx<pac::USART4> => C3,
556-
serial::Tx<pac::USART4> => C5,
557-
);

src/serial.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -463,20 +463,3 @@ hal! {
463463
USART2: (usart2, APB1, usart2en, usart2rst, pclk1),
464464
USART3: (usart3, APB1, usart3en, usart3rst, pclk1),
465465
}
466-
467-
#[cfg(any(
468-
feature = "stm32f302xb",
469-
feature = "stm32f302xc",
470-
feature = "stm32f302xd",
471-
feature = "stm32f302xe",
472-
feature = "stm32f303xb",
473-
feature = "stm32f303xc",
474-
feature = "stm32f303xd",
475-
feature = "stm32f303xe",
476-
feature = "stm32f358",
477-
feature = "stm32f398"
478-
))]
479-
hal! {
480-
USART4: (usart4, APB1, usart4en, usart4rst, pclk1),
481-
USART5: (usart5, APB1, usart5en, usart5rst, pclk1),
482-
}

0 commit comments

Comments
 (0)