mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 07:46:11 +01:00
stm32: Fix USART3 ALT pinout on STM32G0 (#6523)
Signed-off-by: Attila Rakosi <rattila5@hotmail.com>
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8");
|
DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8");
|
||||||
#define GPIO_Rx GPIO('D', 9)
|
#define GPIO_Rx GPIO('D', 9)
|
||||||
#define GPIO_Tx GPIO('D', 8)
|
#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 USART3
|
||||||
#define USARTx_IRQn USART3_IRQn
|
#define USARTx_IRQn USART3_IRQn
|
||||||
#elif CONFIG_STM32_SERIAL_UART4
|
#elif CONFIG_STM32_SERIAL_UART4
|
||||||
|
|||||||
Reference in New Issue
Block a user