Skip to content

Commit bc32730

Browse files
committed
serial: fix usart3 AF for g070, g071, g080
For usart3 the PC and PD banks use AF0 rather then AF1. Tested on STM32G071RBT6 and validate against the stm32-data definitions from embassy Signed-off-by: Sjoerd Simons <[email protected]>
1 parent 096121a commit bc32730

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/serial/usart.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -775,17 +775,17 @@ uart_shared!(USART3, USART3_RX, USART3_TX,
775775
(PB2, AltFunction::AF4),
776776
(PB8, AltFunction::AF4),
777777
(PB10, AltFunction::AF4),
778-
(PC4, AltFunction::AF1),
779-
(PC10, AltFunction::AF1),
780-
(PD8, AltFunction::AF1),
778+
(PC4, AltFunction::AF0),
779+
(PC10, AltFunction::AF0),
780+
(PD8, AltFunction::AF0),
781781
],
782782
rx: [
783783
(PB0, AltFunction::AF4),
784784
(PB9, AltFunction::AF4),
785785
(PB11, AltFunction::AF4),
786-
(PC5, AltFunction::AF1),
787-
(PC11, AltFunction::AF1),
788-
(PD9, AltFunction::AF1),
786+
(PC5, AltFunction::AF0),
787+
(PC11, AltFunction::AF0),
788+
(PD9, AltFunction::AF0),
789789
],
790790
de: [
791791
(PA15, AltFunction::AF5),

0 commit comments

Comments
 (0)