Skip to content

Commit 8cd7ee2

Browse files
committed
[gd32] 修复串口引脚定义错误的问题
https://club.rt-thread.org/ask/question/32d3a440402902f7.html
1 parent ccf0ad2 commit 8cd7ee2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bsp/gd32450z-eval/drivers/drv_usart.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ static const struct gd32_uart uarts[] = {
255255
UART6, // uart peripheral index
256256
UART6_IRQn, // uart iqrn
257257
RCU_UART6, RCU_GPIOE, RCU_GPIOE, // periph clock, tx gpio clock, rt gpio clock
258-
GPIOE, GPIO_AF_8, GPIO_PIN_7, // tx port, tx alternate, tx pin
259-
GPIOE, GPIO_AF_8, GPIO_PIN_8, // rx port, rx alternate, rx pin
258+
GPIOE, GPIO_AF_8, GPIO_PIN_8, // tx port, tx alternate, tx pin
259+
GPIOE, GPIO_AF_8, GPIO_PIN_7, // rx port, rx alternate, rx pin
260260
&serial6,
261261
"uart6",
262262
},
@@ -267,8 +267,8 @@ static const struct gd32_uart uarts[] = {
267267
UART7, // uart peripheral index
268268
UART7_IRQn, // uart iqrn
269269
RCU_UART7, RCU_GPIOE, RCU_GPIOE, // periph clock, tx gpio clock, rt gpio clock
270-
GPIOE, GPIO_AF_8, GPIO_PIN_0, // tx port, tx alternate, tx pin
271-
GPIOE, GPIO_AF_8, GPIO_PIN_1, // rx port, rx alternate, rx pin
270+
GPIOE, GPIO_AF_8, GPIO_PIN_1, // tx port, tx alternate, tx pin
271+
GPIOE, GPIO_AF_8, GPIO_PIN_0, // rx port, rx alternate, rx pin
272272
&serial7,
273273
"uart7",
274274
},

0 commit comments

Comments
 (0)