Merge pull request #4104 from eYoung8475/master

[bsp][allwinner_tina]fixed uart1 gpio rx/tx pin;
This commit is contained in:
Bernard Xiong 2020-12-02 23:40:11 +08:00 committed by GitHub
commit 078b9a7b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ int rt_hw_uart_init(void)
uart->irqno = UART1_INTERRUPT; // IRQ_UART1; uart->irqno = UART1_INTERRUPT; // IRQ_UART1;
uart->gpio_rx_port = GPIO_PORT_A; uart->gpio_rx_port = GPIO_PORT_A;
uart->gpio_tx_port = GPIO_PORT_A; uart->gpio_tx_port = GPIO_PORT_A;
uart->gpio_rx_pin = GPIO_PIN_3; uart->gpio_rx_pin = GPIO_PIN_2;
uart->gpio_tx_pin = GPIO_PIN_2; uart->gpio_tx_pin = GPIO_PIN_3;
uart->gpio_rx_fun = IO_FUN_4; uart->gpio_rx_fun = IO_FUN_4;
uart->gpio_tx_fun = IO_FUN_4; uart->gpio_tx_fun = IO_FUN_4;