![]() |
![]() |
|
CC27xxDriverLibrary
|
#include <stdbool.h>#include <stdint.h>#include "../inc/hw_types.h"#include "../inc/hw_uart.h"#include "../inc/hw_memmap.h"#include "../inc/hw_ints.h"#include "interrupt.h"#include "debug.h"

Go to the source code of this file.
Macros | |
| #define | UART_INT_EOT (UART_IMSC_EOT_M) |
| End Of Transmission Interrupt Mask. More... | |
| #define | UART_INT_OE (UART_IMSC_OE_M) |
| Overrun Error Interrupt Mask. More... | |
| #define | UART_INT_BE (UART_IMSC_BE_M) |
| Break Error Interrupt Mask. More... | |
| #define | UART_INT_PE (UART_IMSC_PE_M) |
| Parity Error Interrupt Mask. More... | |
| #define | UART_INT_FE (UART_IMSC_FE_M) |
| Framing Error Interrupt Mask. More... | |
| #define | UART_INT_RT (UART_IMSC_RT_M) |
| Receive Timeout Interrupt Mask. More... | |
| #define | UART_INT_RX (UART_IMSC_RX_M) |
| Receive Interrupt Mask. More... | |
| #define | UART_INT_TX (UART_IMSC_TX_M) |
| Transmit Interrupt Mask. More... | |
| #define | UART_INT_CTS (UART_IMSC_CTSM_M) |
| CTS Modem Interrupt Mask. More... | |
| #define | UART_INT_TXDMADONE (UART_IMSC_TXDMADONE_M) |
| Tx DMA done interrupt mask. More... | |
| #define | UART_INT_RXDMADONE (UART_IMSC_RXDMADONE_M) |
| Rx DMA done interrupt mask. More... | |
| #define | UART_CONFIG_WLEN_MASK UART_LCRH_WLEN_M |
| Mask for extracting word length. More... | |
| #define | UART_CONFIG_WLEN_8 UART_LCRH_WLEN_BITL8 |
| 8 bit data More... | |
| #define | UART_CONFIG_WLEN_7 UART_LCRH_WLEN_BITL7 |
| 7 bit data More... | |
| #define | UART_CONFIG_WLEN_6 UART_LCRH_WLEN_BITL6 |
| 6 bit data More... | |
| #define | UART_CONFIG_WLEN_5 UART_LCRH_WLEN_BITL5 |
| 5 bit data More... | |
| #define | UART_CONFIG_STOP_MASK UART_LCRH_STP2_M |
| Mask for extracting stop bits. More... | |
| #define | UART_CONFIG_STOP_ONE 0x00000000 |
| One stop bit. More... | |
| #define | UART_CONFIG_STOP_TWO UART_LCRH_STP2 |
| Two stop bits. More... | |
| #define | UART_CONFIG_PAR_MASK 0x00000086 |
| Mask for extracting parity. More... | |
| #define | UART_CONFIG_PAR_NONE 0x00000000 |
| No parity. More... | |
| #define | UART_CONFIG_PAR_EVEN 0x00000006 |
| Even parity. More... | |
| #define | UART_CONFIG_PAR_ODD 0x00000002 |
| Odd parity. More... | |
| #define | UART_CONFIG_PAR_ONE 0x00000082 |
| Parity bit is one. More... | |
| #define | UART_CONFIG_PAR_ZERO 0x00000086 |
| Parity bit is zero. More... | |
| #define | UART_FIFO_TX2_8 UART_IFLS_TXSEL_QUARTER |
| Transmit interrupt at 1/4 Full. More... | |
| #define | UART_FIFO_TX4_8 UART_IFLS_TXSEL_HALF |
| Transmit interrupt at 1/2 Full. More... | |
| #define | UART_FIFO_TX6_8 UART_IFLS_TXSEL_THREEQU |
| Transmit interrupt at 3/4 Full. More... | |
| #define | UART_FIFO_RX2_8 UART_IFLS_RXSEL_QUARTER |
| Receive interrupt at 1/4 Full. More... | |
| #define | UART_FIFO_RX4_8 UART_IFLS_RXSEL_HALF |
| Receive interrupt at 1/2 Full. More... | |
| #define | UART_FIFO_RX6_8 UART_IFLS_RXSEL_THREEQU |
| Receive interrupt at 3/4 Full. More... | |
| #define | UART_DMA_ERR_RXSTOP 0x00000004 |
| Stop DMA receive if UART error. More... | |
| #define | UART_DMA_TX 0x00000002 |
| Enable DMA for transmit. More... | |
| #define | UART_DMA_RX 0x00000001 |
| Enable DMA for receive. More... | |
| #define | UART_RXERROR_OVERRUN 0x00000008 |
| #define | UART_RXERROR_BREAK 0x00000004 |
| #define | UART_RXERROR_PARITY 0x00000002 |
| #define | UART_RXERROR_FRAMING 0x00000001 |
Functions | |
| __STATIC_INLINE void | UARTSetFifoLevel (uint32_t base, uint32_t txLevel, uint32_t rxLevel) |
| Sets the FIFO level at which interrupts are generated. More... | |
| void | UARTConfigSetExpClk (uint32_t base, uint32_t UARTClkFreq, uint32_t baudFreq, uint32_t config) |
| Sets the configuration of a UART. More... | |
| void | UARTDisable (uint32_t base) |
| Disables transmitting and receiving. More... | |
| __STATIC_INLINE void | UARTEnableFifo (uint32_t base) |
| Enables the transmit and receive FIFOs. More... | |
| __STATIC_INLINE void | UARTDisableFIFO (uint32_t base) |
| Disables the transmit and receive FIFOs. More... | |
| __STATIC_INLINE bool | UARTCharAvailable (uint32_t base) |
| Determines if there are any characters in the receive FIFO. More... | |
| __STATIC_INLINE uint8_t | UARTGetCharNonBlocking (uint32_t base) |
| Receives a character from the specified port. More... | |
| uint8_t | UARTGetChar (uint32_t base) |
| Waits for a character from the specified port. More... | |
| __STATIC_INLINE bool | UARTSpaceAvailable (uint32_t base) |
| Determines if there is any space in the transmit FIFO. More... | |
| __STATIC_INLINE void | UARTPutCharNonBlocking (uint32_t base, uint8_t data) |
| Sends a character to the specified port. More... | |
| void | UARTPutChar (uint32_t base, uint8_t data) |
| Waits to send a character to the specified port. More... | |
| __STATIC_INLINE bool | UARTBusy (uint32_t base) |
| Determines whether the UART transmitter is busy or not. More... | |
| __STATIC_INLINE void | UARTEnableInt (uint32_t base, uint32_t intFlags) |
| Enables individual UART interrupt sources. More... | |
| __STATIC_INLINE void | UARTDisableInt (uint32_t base, uint32_t intFlags) |
| Disables individual UART interrupt sources. More... | |
| __STATIC_INLINE uint32_t | UARTIntStatus (uint32_t base, bool masked) |
| Gets the current interrupt status. More... | |
| __STATIC_INLINE void | UARTClearInt (uint32_t base, uint32_t intFlags) |
| Clears UART interrupt sources. More... | |
| __STATIC_INLINE void | UARTEnableDMA (uint32_t base, uint32_t dmaFlags) |
| Enable UART DMA operation. More... | |
| __STATIC_INLINE void | UARTDisableDMA (uint32_t base, uint32_t dmaFlags) |
| Disable UART DMA operation. More... | |
| __STATIC_INLINE uint32_t | UARTGetRxError (uint32_t base) |
| Gets current receiver errors. More... | |
| __STATIC_INLINE void | UARTClearRxError (uint32_t base) |
| Clears all reported receiver errors. More... | |
| __STATIC_INLINE void | UARTEnableCTS (uint32_t base) |
| Enable CTS flow control. More... | |
| __STATIC_INLINE void | UARTEnableRTS (uint32_t base) |
| Enable RTS flow control. More... | |
| __STATIC_INLINE void | UARTDisableCTS (uint32_t base) |
| Disable CTS flow control. More... | |
| __STATIC_INLINE void | UARTDisableRTS (uint32_t base) |
| Disable RTS flow control. More... | |