Skip to content

Commit e657296

Browse files
committed
fix uart register address structure type
1 parent 669d9d9 commit e657296

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bsp/allwinner_tina/drivers/drv_uart.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ struct tina_uart
7474

7575
typedef struct tina_uart *tina_uart_t;
7676

77-
#define UART0 ((tina_gpio_t)UART0_BASE_ADDR)
78-
#define UART1 ((tina_gpio_t)UART1_BASE_ADDR)
79-
#define UART2 ((tina_gpio_t)UART2_BASE_ADDR)
77+
#define UART0 ((tina_uart_t)UART0_BASE_ADDR)
78+
#define UART1 ((tina_uart_t)UART1_BASE_ADDR)
79+
#define UART2 ((tina_uart_t)UART2_BASE_ADDR)
8080

8181
int rt_hw_uart_init(void);
8282

0 commit comments

Comments
 (0)