From e65729660f677a16abad4534f39c9a80d65c6ca8 Mon Sep 17 00:00:00 2001 From: emlslxl Date: Tue, 27 Feb 2018 10:47:49 +0800 Subject: [PATCH] fix uart register address structure type --- bsp/allwinner_tina/drivers/drv_uart.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/allwinner_tina/drivers/drv_uart.h b/bsp/allwinner_tina/drivers/drv_uart.h index a4e648ffab..25cb271c6e 100644 --- a/bsp/allwinner_tina/drivers/drv_uart.h +++ b/bsp/allwinner_tina/drivers/drv_uart.h @@ -74,9 +74,9 @@ struct tina_uart typedef struct tina_uart *tina_uart_t; -#define UART0 ((tina_gpio_t)UART0_BASE_ADDR) -#define UART1 ((tina_gpio_t)UART1_BASE_ADDR) -#define UART2 ((tina_gpio_t)UART2_BASE_ADDR) +#define UART0 ((tina_uart_t)UART0_BASE_ADDR) +#define UART1 ((tina_uart_t)UART1_BASE_ADDR) +#define UART2 ((tina_uart_t)UART2_BASE_ADDR) int rt_hw_uart_init(void);