Skip to content

Commit 27d0137

Browse files
Settle PB10
Found a way to confirm binding
1 parent cf92895 commit 27d0137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serial.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ usart_pins! {
108108
#[cfg(feature = "stm32f030xc")]
109109
usart_pins! {
110110
USART3 => {
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>>],
111+
// According to the datasheet PB10 is both tx and rx, but in stm32cubemx it's only tx
112+
tx => [gpiob::PB10<Alternate<AF4>>, gpioc::PC4<Alternate<AF1>>, gpioc::PC10<Alternate<AF1>>],
113113
rx => [gpiob::PB11<Alternate<AF4>>, gpioc::PC5<Alternate<AF1>>, gpioc::PC11<Alternate<AF1>>],
114114
}
115115
USART4 => {

0 commit comments

Comments
 (0)