Skip to content

Commit ef432ab

Browse files
committed
LPUART1: Add pin impls for PC0 and PC1. TX & RX seems to be working.
1 parent 0273aed commit ef432ab

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/serial.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,12 +1151,28 @@ impl_pin_traits! {
11511151
}
11521152
}
11531153

1154-
#[cfg(feature = "stm32l4x6")]
1154+
#[cfg(any(
1155+
// feature = "stm32l471", ,, missing PAC support
1156+
// feature = "stm32l475",
1157+
feature = "stm32l476",
1158+
// feature = "stm32l485",
1159+
// feature = "stm32l486",
1160+
// feature = "stm32l496",
1161+
// feature = "stm32l4a6",
1162+
// feature = "stm32l4p5",
1163+
// feature = "stm32l4q5",
1164+
// feature = "stm32l4r5",
1165+
// feature = "stm32l4s5",
1166+
// feature = "stm32l4r7",
1167+
// feature = "stm32l4s7",
1168+
// feature = "stm32l4r9",
1169+
// feature = "stm32l4s9",
1170+
))]
11551171
impl_pin_traits! {
11561172
LPUART1: {
1157-
AF8: {
1158-
TX: PB11;
1159-
RX: PB10;
1173+
8: {
1174+
TX: PB11, PC1;
1175+
RX: PB10, PC0;
11601176
RTS_DE: ;
11611177
CTS: ;
11621178
}

0 commit comments

Comments
 (0)