Skip to content

Commit 0e03a32

Browse files
Adjust note for confusing pin
1 parent e5f7a2c commit 0e03a32

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/serial.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,10 @@ usart_pins! {
107107
}
108108
#[cfg(feature = "stm32f030xc")]
109109
usart_pins! {
110-
// TODO WTF look at this again, in the datasheet PB10 is both tx and rx
111-
// USART3: (gpiob::PB10, AF4, gpiob::PA11, AF4),
112110
USART3 => {
113-
tx => [gpioc::PC4<Alternate<AF1>>, gpioc::PC10<Alternate<AF1>>],
114-
rx => [gpioc::PC5<Alternate<AF1>>, gpioc::PC11<Alternate<AF1>>],
111+
// TODO WTF look at this again, in the datasheet PB10 is both tx and rx
112+
tx => [/*gpiob::PB10<Alternate<AF4>>,*/ gpioc::PC4<Alternate<AF1>>, gpioc::PC10<Alternate<AF1>>],
113+
rx => [gpiob::PB11<Alternate<AF4>>, gpioc::PC5<Alternate<AF1>>, gpioc::PC11<Alternate<AF1>>],
115114
}
116115
USART4 => {
117116
tx => [gpioa::PA0<Alternate<AF4>>, gpioc::PC10<Alternate<AF0>>],

0 commit comments

Comments
 (0)