From 8cd7ee268f120c55acdbcd9c6b8cd395cde5bdec Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 4 Aug 2022 22:57:14 -0400 Subject: [PATCH] =?UTF-8?q?[gd32]=20=E4=BF=AE=E5=A4=8D=E4=B8=B2=E5=8F=A3?= =?UTF-8?q?=E5=BC=95=E8=84=9A=E5=AE=9A=E4=B9=89=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://club.rt-thread.org/ask/question/32d3a440402902f7.html --- bsp/gd32450z-eval/drivers/drv_usart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bsp/gd32450z-eval/drivers/drv_usart.c b/bsp/gd32450z-eval/drivers/drv_usart.c index 423befbc93..6b5b0ced96 100644 --- a/bsp/gd32450z-eval/drivers/drv_usart.c +++ b/bsp/gd32450z-eval/drivers/drv_usart.c @@ -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", },