Skip to content

Commit e76c290

Browse files
committed
adding PB8/PB9 pin defs for USART3
1 parent b0cead1 commit e76c290

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/serial.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,13 @@ cfg_if! {
298298
}
299299
}
300300

301+
cfg_if! {
302+
if #[cfg(feature="gpio-f373")] {
303+
impl<Otype> TxPin<USART3> for gpiob::PB8<AF7<Otype>> {}
304+
impl<Otype> RxPin<USART3> for gpiob::PB9<AF7<Otype>> {}
305+
}
306+
}
307+
301308
cfg_if! {
302309
if #[cfg(not(feature = "gpio-f373"))] {
303310
impl<Otype> TxPin<USART2> for gpioa::PA14<AF7<Otype>> {}

0 commit comments

Comments
 (0)