![]() |
![]() |
UART driver implementation for a CC26X2 UART controller.
============================================================================
The UART header file should be included in an application as follows:
Refer to UART2.h for a complete description of APIs and examples of use.
The UART2 driver is unable to access flash memory in the address range 0x0000 - 0x2000 on devices based on the Cortex M33+ core (CC26X3/CC26X4) due to security constraints.
#include <stddef.h>#include <stdint.h>#include <stdbool.h>#include <ti/devices/DeviceFamily.h>#include <DeviceFamily_constructPath(inc/hw_types.h)>#include <DeviceFamily_constructPath(driverlib/udma.h)>#include <ti/drivers/dpl/HwiP.h>#include <ti/drivers/dpl/SemaphoreP.h>#include <ti/drivers/UART2.h>#include <ti/drivers/dma/UDMACC26XX.h>
Go to the source code of this file.
Data Structures | |
| struct | UART2CC26X2_HWAttrs |
| UART2CC26X2 Hardware attributes. More... | |
| struct | UART2CC26X2_Object |
| UART2CC26X2 Object. More... | |
Macros | |
| #define | UART2CC26X2_FIFO_SIZE 32 |
Typedefs | |
| typedef struct UART2CC26X2_Object * | UART2CC26X2_Handle |
Enumerations | |
| enum | UART2CC26X2_FifoThreshold { UART2CC26X2_FIFO_THRESHOLD_1_8 = 0, UART2CC26X2_FIFO_THRESHOLD_2_8 = 1, UART2CC26X2_FIFO_THRESHOLD_4_8 = 2, UART2CC26X2_FIFO_THRESHOLD_6_8 = 3, UART2CC26X2_FIFO_THRESHOLD_7_8 = 4 } |
| UART TX/RX interrupt FIFO threshold select. More... | |
| #define UART2CC26X2_FIFO_SIZE 32 |
Size of the TX and RX FIFOs is 32 items
| typedef struct UART2CC26X2_Object * UART2CC26X2_Handle |
UART TX/RX interrupt FIFO threshold select.
Defined FIFO thresholds for generation of both TX interrupt and RX interrupt.