aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAttila <rattila5@hotmail.com>2024-03-10 15:48:48 -0700
committerGitHub <noreply@github.com>2024-03-10 18:48:48 -0400
commit18de421c4acbdb00946df35dfb412dedb159abca (patch)
treecc2b9cbb3e00b00516bea5f118a93629242b50d1 /src
parent71604b712a0357b8bdea7cdd2eea18f45f7cec44 (diff)
downloadkutter-18de421c4acbdb00946df35dfb412dedb159abca.tar.gz
kutter-18de421c4acbdb00946df35dfb412dedb159abca.tar.xz
kutter-18de421c4acbdb00946df35dfb412dedb159abca.zip
stm32: Fix USART3 ALT pinout on STM32G0 (#6523)
Signed-off-by: Attila Rakosi <rattila5@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm32/stm32f0_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32f0_serial.c b/src/stm32/stm32f0_serial.c
index e48960f1..b7f067b6 100644
--- a/src/stm32/stm32f0_serial.c
+++ b/src/stm32/stm32f0_serial.c
@@ -68,7 +68,7 @@
DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8");
#define GPIO_Rx GPIO('D', 9)
#define GPIO_Tx GPIO('D', 8)
- #define USARTx_FUNCTION GPIO_FUNCTION(7)
+ #define USARTx_FUNCTION GPIO_FUNCTION(CONFIG_MACH_STM32G0 ? 0 : 7)
#define USARTx USART3
#define USARTx_IRQn USART3_IRQn
#elif CONFIG_STM32_SERIAL_UART4