mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 15:23:33 +08:00
18 lines
340 B
C
18 lines
340 B
C
#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
|
|
|
|
int rt_hw_uart_init(void);
|
|
|
|
#endif
|
|
|