Browse Source

Settle PB10

Found a way to confirm binding
features/pwm
David Sawatzke 4 years ago
parent
commit
928fd640c3
  1. 4
      src/serial.rs

4
src/serial.rs

@ -108,8 +108,8 @@ usart_pins! {
#[cfg(feature = "stm32f030xc")]
usart_pins! {
USART3 => {
// 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>>],
// According to the datasheet PB10 is both tx and rx, but in stm32cubemx it's only tx
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 => {

Loading…
Cancel
Save