Part Number:CC2642R
Tool/software: TI-RTOS
Hi TI experts,
I would like to confirm if UARTCC26XX_Object, UARTCC26XX_HWAttrsV2, and UART_config are fit, proper, and compatible with CC2642R1 chipset.
for example, I thought that it should point to UARTCC26X2_fxnTable, but still UARTCC26XX_fxnTable.
if compatible, when UARTCC26X2.c and UARTCC26X2.h are necessary?
In CC26X2R1_LAUNCHXL.c
/*
* =============================== UART ===============================
*/
#include <ti/drivers/UART.h>
#include <ti/drivers/uart/UARTCC26XX.h>
UARTCC26XX_Object uartCC26XXObjects[CC26X2R1_LAUNCHXL_UARTCOUNT];
uint8_t uartCC26XXRingBuffer[CC26X2R1_LAUNCHXL_UARTCOUNT][32];
const UARTCC26XX_HWAttrsV2 uartCC26XXHWAttrs[CC26X2R1_LAUNCHXL_UARTCOUNT] = {
{
.baseAddr = UART0_BASE,
.powerMngrId = PowerCC26XX_PERIPH_UART0,
.intNum = INT_UART0_COMB,
.intPriority = ~0,
.swiPriority = 0,
.txPin = CC26X2R1_LAUNCHXL_UART0_TX,
.rxPin = CC26X2R1_LAUNCHXL_UART0_RX,
.ctsPin = PIN_UNASSIGNED,
.rtsPin = PIN_UNASSIGNED,
.ringBufPtr = uartCC26XXRingBuffer[CC26X2R1_LAUNCHXL_UART0],
.ringBufSize = sizeof(uartCC26XXRingBuffer[CC26X2R1_LAUNCHXL_UART0]),
.txIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_1_8,
.rxIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_4_8,
.errorFxn = NULL
},
{
.baseAddr = UART1_BASE,
.powerMngrId = PowerCC26X2_PERIPH_UART1,
.intNum = INT_UART1_COMB,
.intPriority = ~0,
.swiPriority = 0,
.txPin = CC26X2R1_LAUNCHXL_UART1_TX,
.rxPin = CC26X2R1_LAUNCHXL_UART1_RX,
.ctsPin = PIN_UNASSIGNED,
.rtsPin = PIN_UNASSIGNED,
.ringBufPtr = uartCC26XXRingBuffer[CC26X2R1_LAUNCHXL_UART1],
.ringBufSize = sizeof(uartCC26XXRingBuffer[CC26X2R1_LAUNCHXL_UART1]),
.txIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_1_8,
.rxIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_4_8,
.errorFxn = NULL
}
};
const UART_Config UART_config[CC26X2R1_LAUNCHXL_UARTCOUNT] = {
{
.fxnTablePtr = &UARTCC26XX_fxnTable,
.object = &uartCC26XXObjects[CC26X2R1_LAUNCHXL_UART0],
.hwAttrs = &uartCC26XXHWAttrs[CC26X2R1_LAUNCHXL_UART0]
},
{
.fxnTablePtr = &UARTCC26XX_fxnTable,
.object = &uartCC26XXObjects[CC26X2R1_LAUNCHXL_UART1],
.hwAttrs = &uartCC26XXHWAttrs[CC26X2R1_LAUNCHXL_UART1]
},
};
const uint_least8_t UART_count = CC26X2R1_LAUNCHXL_UARTCOUNT;
BR,
Ji-won Lee