2020-04-14 22:17:27 +08:00
|
|
|
#ifndef _UART_H_
|
|
|
|
#define _UART_H_
|
|
|
|
|
|
|
|
#define RT_DEVICE_CTRL_CUSTOM 0x20
|
|
|
|
#define RT_DEVICE_CTRL_PIN 0x21
|
|
|
|
#define RT_DEVICE_POWERSAVE 0x22
|
|
|
|
#define RT_DEVICE_WAKEUP 0x23
|
|
|
|
|
|
|
|
#define UART_CONFIG_BAUD_RATE_9600 1
|
|
|
|
#define UART_CONFIG_BAUD_RATE_115200 2
|
|
|
|
|
|
|
|
#define UART0_RB_SIZE 1024
|
|
|
|
|
2021-06-28 22:34:35 +08:00
|
|
|
int rt_hw_uart_init(void);
|
2020-04-14 22:17:27 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|