Browse Source

Adjust note for confusing pin

features/pwm
David Sawatzke 4 years ago
parent
commit
0e03a324c7
  1. 7
      src/serial.rs

7
src/serial.rs

@ -107,11 +107,10 @@ usart_pins! {
}
#[cfg(feature = "stm32f030xc")]
usart_pins! {
// TODO WTF look at this again, in the datasheet PB10 is both tx and rx
// USART3: (gpiob::PB10, AF4, gpiob::PA11, AF4),
USART3 => {
tx => [gpioc::PC4<Alternate<AF1>>, gpioc::PC10<Alternate<AF1>>],
rx => [gpioc::PC5<Alternate<AF1>>, gpioc::PC11<Alternate<AF1>>],
// TODO WTF look at this again, in the datasheet PB10 is both tx and rx
tx => [/*gpiob::PB10<Alternate<AF4>>,*/ gpioc::PC4<Alternate<AF1>>, gpioc::PC10<Alternate<AF1>>],
rx => [gpiob::PB11<Alternate<AF4>>, gpioc::PC5<Alternate<AF1>>, gpioc::PC11<Alternate<AF1>>],
}
USART4 => {
tx => [gpioa::PA0<Alternate<AF4>>, gpioc::PC10<Alternate<AF0>>],

Loading…
Cancel
Save