1 #ifndef __DRV_UART_H__ 2 #define __DRV_UART_H__ 3 4 #define RT_DEVICE_CTRL_CUSTOM 0x20 5 #define RT_DEVICE_CTRL_PIN 0x21 6 #define RT_DEVICE_POWERSAVE 0x22 7 #define RT_DEVICE_WAKEUP 0x23 8 9 #define UART_CONFIG_BAUD_RATE_9600 1 10 #define UART_CONFIG_BAUD_RATE_115200 2 11 12 #define UART0_RB_SIZE 1024 13 14 // #define USE_UART0_1 0 15 16 int rt_hw_uart_init(void); 17 18 #endif 19 20