提交 8cd7ee26 编写于 作者: mysterywolf's avatar mysterywolf 提交者: mysterywolf

[gd32] 修复串口引脚定义错误的问题

https://club.rt-thread.org/ask/question/32d3a440402902f7.html
上级 ccf0ad29
......@@ -255,8 +255,8 @@ static const struct gd32_uart uarts[] = {
UART6, // uart peripheral index
UART6_IRQn, // uart iqrn
RCU_UART6, RCU_GPIOE, RCU_GPIOE, // periph clock, tx gpio clock, rt gpio clock
GPIOE, GPIO_AF_8, GPIO_PIN_7, // tx port, tx alternate, tx pin
GPIOE, GPIO_AF_8, GPIO_PIN_8, // rx port, rx alternate, rx pin
GPIOE, GPIO_AF_8, GPIO_PIN_8, // tx port, tx alternate, tx pin
GPIOE, GPIO_AF_8, GPIO_PIN_7, // rx port, rx alternate, rx pin
&serial6,
"uart6",
},
......@@ -267,8 +267,8 @@ static const struct gd32_uart uarts[] = {
UART7, // uart peripheral index
UART7_IRQn, // uart iqrn
RCU_UART7, RCU_GPIOE, RCU_GPIOE, // periph clock, tx gpio clock, rt gpio clock
GPIOE, GPIO_AF_8, GPIO_PIN_0, // tx port, tx alternate, tx pin
GPIOE, GPIO_AF_8, GPIO_PIN_1, // rx port, rx alternate, rx pin
GPIOE, GPIO_AF_8, GPIO_PIN_1, // tx port, tx alternate, tx pin
GPIOE, GPIO_AF_8, GPIO_PIN_0, // rx port, rx alternate, rx pin
&serial7,
"uart7",
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册