1 #ifndef _UART_H_ 2 #define _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 int rt_hw_uart_init(void); 15 16 #endif 17 18