60 #define UART_INT_DMATX 0x20000 // DMA Tx Done interrupt Mask 61 #define UART_INT_DMARX 0x10000 // DMA Rx Done interrupt Mask 62 #define UART_INT_EOT 0x800 // End of transfer interrupt Mask 63 #define UART_INT_OE 0x400 // Overrun Error Interrupt Mask 64 #define UART_INT_BE 0x200 // Break Error Interrupt Mask 65 #define UART_INT_PE 0x100 // Parity Error Interrupt Mask 66 #define UART_INT_FE 0x080 // Framing Error Interrupt Mask 67 #define UART_INT_RT 0x040 // Receive Timeout Interrupt Mask 68 #define UART_INT_TX 0x020 // Transmit Interrupt Mask 69 #define UART_INT_RX 0x010 // Receive Interrupt Mask 70 #define UART_INT_CTS 0x002 // CTS Modem Interrupt Mask 82 #define UART_CONFIG_WLEN_MASK 0x00000060 // Mask for extracting word length 83 #define UART_CONFIG_WLEN_8 0x00000060 // 8 bit data 84 #define UART_CONFIG_WLEN_7 0x00000040 // 7 bit data 85 #define UART_CONFIG_WLEN_6 0x00000020 // 6 bit data 86 #define UART_CONFIG_WLEN_5 0x00000000 // 5 bit data 87 #define UART_CONFIG_STOP_MASK 0x00000008 // Mask for extracting stop bits 88 #define UART_CONFIG_STOP_ONE 0x00000000 // One stop bit 89 #define UART_CONFIG_STOP_TWO 0x00000008 // Two stop bits 90 #define UART_CONFIG_PAR_MASK 0x00000086 // Mask for extracting parity 91 #define UART_CONFIG_PAR_NONE 0x00000000 // No parity 92 #define UART_CONFIG_PAR_EVEN 0x00000006 // Even parity 93 #define UART_CONFIG_PAR_ODD 0x00000002 // Odd parity 94 #define UART_CONFIG_PAR_ONE 0x00000082 // Parity bit is one 95 #define UART_CONFIG_PAR_ZERO 0x00000086 // Parity bit is zero 103 #define UART_FIFO_TX1_8 0x00000000 // Transmit interrupt at 1/8 Full 104 #define UART_FIFO_TX2_8 0x00000001 // Transmit interrupt at 1/4 Full 105 #define UART_FIFO_TX4_8 0x00000002 // Transmit interrupt at 1/2 Full 106 #define UART_FIFO_TX6_8 0x00000003 // Transmit interrupt at 3/4 Full 107 #define UART_FIFO_TX7_8 0x00000004 // Transmit interrupt at 7/8 Full 115 #define UART_FIFO_RX1_8 0x00000000 // Receive interrupt at 1/8 Full 116 #define UART_FIFO_RX2_8 0x00000008 // Receive interrupt at 1/4 Full 117 #define UART_FIFO_RX4_8 0x00000010 // Receive interrupt at 1/2 Full 118 #define UART_FIFO_RX6_8 0x00000018 // Receive interrupt at 3/4 Full 119 #define UART_FIFO_RX7_8 0x00000020 // Receive interrupt at 7/8 Full 126 #define UART_DMA_ERR_RXSTOP 0x00000004 // Stop DMA receive if UART error 127 #define UART_DMA_TX 0x00000002 // Enable DMA for transmit 128 #define UART_DMA_RX 0x00000001 // Enable DMA for receive 135 #define UART_RXERROR_OVERRUN 0x00000008 136 #define UART_RXERROR_BREAK 0x00000004 137 #define UART_RXERROR_PARITY 0x00000002 138 #define UART_RXERROR_FRAMING 0x00000001 146 #define UART_OUTPUT_RTS 0x00000800 153 #define UART_INPUT_CTS 0x00000001 161 #define UART_FLOWCONTROL_TX 0x00008000 162 #define UART_FLOWCONTROL_RX 0x00004000 163 #define UART_FLOWCONTROL_NONE 0x00000000 171 #define UART_TXINT_MODE_FIFO 0x00000000 172 #define UART_TXINT_MODE_EOT 0x00000010 183 unsigned long ulRxLevel);
184 extern void UARTFIFOLevelGet(
unsigned long ulBase,
unsigned long *pulTxLevel,
185 unsigned long *pulRxLevel);
187 unsigned long ulBaud,
unsigned long ulConfig);
189 unsigned long *pulBaud,
190 unsigned long *pulConfig);
200 unsigned char ucData);
201 extern void UARTCharPut(
unsigned long ulBase,
unsigned char ucData);
202 extern void UARTBreakCtl(
unsigned long ulBase, tBoolean bBreakState);
203 extern tBoolean
UARTBusy(
unsigned long ulBase);
204 extern void UARTIntRegister(
unsigned long ulBase,
void(*pfnHandler)(
void));
206 extern void UARTIntEnable(
unsigned long ulBase,
unsigned long ulIntFlags);
207 extern void UARTIntDisable(
unsigned long ulBase,
unsigned long ulIntFlags);
208 extern unsigned long UARTIntStatus(
unsigned long ulBase, tBoolean bMasked);
209 extern void UARTIntClear(
unsigned long ulBase,
unsigned long ulIntFlags);
210 extern void UARTDMAEnable(
unsigned long ulBase,
unsigned long ulDMAFlags);
211 extern void UARTDMADisable(
unsigned long ulBase,
unsigned long ulDMAFlags);
215 unsigned long ulControl);
217 unsigned long ulControl);
tBoolean UARTSpaceAvail(unsigned long ulBase)
Definition: uart.c:900
unsigned long UARTModemStatusGet(unsigned long ulBase)
Definition: uart.c:694
unsigned long UARTIntStatus(unsigned long ulBase, tBoolean bMasked)
Definition: uart.c:1312
long UARTCharGet(unsigned long ulBase)
Definition: uart.c:971
void UARTConfigSetExpClk(unsigned long ulBase, unsigned long ulUARTClk, unsigned long ulBaud, unsigned long ulConfig)
Definition: uart.c:315
unsigned long UARTRxErrorGet(unsigned long ulBase)
Definition: uart.c:1459
void UARTFIFODisable(unsigned long ulBase)
Definition: uart.c:554
void UARTIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
Definition: uart.c:1282
void UARTDMAEnable(unsigned long ulBase, unsigned long ulDMAFlags)
Definition: uart.c:1396
void UARTConfigGetExpClk(unsigned long ulBase, unsigned long ulUARTClk, unsigned long *pulBaud, unsigned long *pulConfig)
Definition: uart.c:409
void UARTRxErrorClear(unsigned long ulBase)
Definition: uart.c:1487
long UARTCharGetNonBlocking(unsigned long ulBase)
Definition: uart.c:930
void UARTDMADisable(unsigned long ulBase, unsigned long ulDMAFlags)
Definition: uart.c:1428
void UARTModemControlClear(unsigned long ulBase, unsigned long ulControl)
Definition: uart.c:632
void UARTDisable(unsigned long ulBase)
Definition: uart.c:491
void UARTBreakCtl(unsigned long ulBase, tBoolean bBreakState)
Definition: uart.c:1091
unsigned long UARTTxIntModeGet(unsigned long ulBase)
Definition: uart.c:845
void UARTModemControlSet(unsigned long ulBase, unsigned long ulControl)
Definition: uart.c:590
void UARTFlowControlSet(unsigned long ulBase, unsigned long ulMode)
Definition: uart.c:731
void UARTFIFOLevelSet(unsigned long ulBase, unsigned long ulTxLevel, unsigned long ulRxLevel)
Definition: uart.c:216
void UARTIntClear(unsigned long ulBase, unsigned long ulIntFlags)
Definition: uart.c:1360
tBoolean UARTCharsAvail(unsigned long ulBase)
Definition: uart.c:873
unsigned long UARTFlowControlGet(unsigned long ulBase)
Definition: uart.c:768
tBoolean UARTBusy(unsigned long ulBase)
Definition: uart.c:1123
tBoolean UARTCharPutNonBlocking(unsigned long ulBase, unsigned char ucData)
Definition: uart.c:1009
void UARTTxIntModeSet(unsigned long ulBase, unsigned long ulMode)
Definition: uart.c:806
void UARTIntUnregister(unsigned long ulBase)
Definition: uart.c:1200
void UARTFIFOLevelGet(unsigned long ulBase, unsigned long *pulTxLevel, unsigned long *pulRxLevel)
Definition: uart.c:259
void UARTIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
Definition: uart.c:1251
void UARTCharPut(unsigned long ulBase, unsigned char ucData)
Definition: uart.c:1055
unsigned long UARTModemControlGet(unsigned long ulBase)
Definition: uart.c:667
void UARTFIFOEnable(unsigned long ulBase)
Definition: uart.c:529
void UARTEnable(unsigned long ulBase)
Definition: uart.c:459
unsigned long UARTParityModeGet(unsigned long ulBase)
Definition: uart.c:183
void UARTIntRegister(unsigned long ulBase, void(*pfnHandler)(void))
Definition: uart.c:1156
void UARTParityModeSet(unsigned long ulBase, unsigned long ulParity)
Definition: uart.c:148