Skip to content

Commit ce93b89

Browse files
YaochengerCopilot
andauthored
Update bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c
Co-authored-by: Copilot <[email protected]>
1 parent db84430 commit ce93b89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bsp/gd32/arm/libraries/gd32_drivers/drv_usart.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ static const struct gd32_uart uart_obj[] = {
455455
#else
456456
RCU_GPIOA, RCU_GPIOA, // periph clock, tx gpio clock, rt gpio clock
457457
GPIOA, GPIO_PIN_2, // tx port, tx pin
458-
GPIOA, GPIO_PIN_3, // rx port, rx pin
458+
RCU_GPIOA, RCU_GPIOA, /* periph clock, tx gpio clock, rt gpio clock */
459+
GPIOA, GPIO_PIN_2, /* tx port, tx pin */
460+
GPIOA, GPIO_PIN_3, /* rx port, rx pin */
459461
#endif
460462
#ifdef RT_SERIAL_USING_DMA
461463
&uart1_rxdma,

0 commit comments

Comments
 (0)