32 #ifndef __UARTD_8XX_H_
33 #define __UARTD_8XX_H_
47 #define ERR_NO_ERROR (0x00000000UL)
48 #define ERR_UART_RXD_BUSY (0x00080001UL)
49 #define ERR_UART_TXD_BUSY (0x00080002UL)
50 #define ERR_UART_OVERRUN_FRAME_PARITY_NOISE (0x00080003UL)
51 #define ERR_UART_UNDERRUN (0x00080004UL)
52 #define ERR_UART_PARAM (0x00080005UL)
58 #define OVERRUN_ERR_EN (1 << 0)
59 #define UNDERRUN_ERR_EN (1 << 1)
60 #define FRAME_ERR_EN (1 << 2)
61 #define PARITY_ERR_EN (1 << 3)
62 #define RXNOISE_ERR_EN (1 << 4)
68 #define ALL_ERR_EN (OVERRUN_ERR_EN | UNDERRUN_ERR_EN | FRAME_ERR_EN | PARITY_ERR_EN | \
76 #define UART_ROM_MEM_SIZE (0x20UL)
84 #define TX_MODE_BUF_EMPTY (0x00)
85 #define RX_MODE_BUF_FULL (0x00)
88 #define TX_MODE_SZERO_SEND_CRLF (0x01)
89 #define RX_MODE_CRLF_RECVD (0x01)
92 #define TX_MODE_SZERO_SEND_LF (0x02)
93 #define RX_MODE_LF_RECVD (0x02)
96 #define TX_MODE_SZERO (0x03)
101 #define DRIVER_MODE_POLLING (0x00)
102 #define DRIVER_MODE_INTERRUPT (0x01)
103 #define DRIVER_MODE_DMA (0x02)
108 typedef void UART_HANDLE_T;
144 uint16_t transfer_mode;
153 uint16_t driver_mode;
164 typedef struct UARTD_API {