1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017-05-30 Bernard the first version 9 * 2018-03-15 flyingcys add amebaz 10 */ 11 12 #ifndef __DRV_UART_H__ 13 #define __DRV_UART_H__ 14 15 #if defined(CONFIG_PLATFORM_8711B) 16 // 8710B 17 #define UART_TX PA_23 18 #define UART_RX PA_18 19 #else 20 // 8711AM 21 #define UART_TX PA_7 22 #define UART_RX PA_6 23 //8711AF 24 //#define UART_TX PA_4 25 //#define UART_RX PA_0 26 #endif 27 28 int rt_hw_uart_init(void); 29 30 #endif /* __DRV_UART_H__ */ 31