This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1354P10: PinMux configuration for Timer Capture

Part Number: CC1354P10


Tool/software:

Hello E2E,

I was trying to implement Edge Time capture on a GPIO pin. My intension is to capture the time between two edges on a GPIO pin. 

When I try to implement using GPTimerCC26XX.h. Somehow, I don't see any definition/reference for "PINCC26XX_setMux".  Below is my sample code... 

GPTimerCC26XX_Handle capTimer;
GPTimerCC26XX_Params tParams;
GPTimerCC26XX_Params_init(&tParams);

tParams.width = GPT_CONFIG_16BIT;
tParams.mode = GPT_MODE_EDGE_TIME;
tParams.direction = GPTimerCC26XX_DIRECTION_UP;
tParams.debugStallMode = GPTimerCC26XX_DEBUG_STALL_OFF;

capTimer = GPTimerCC26XX_open(GPT_A, &tParams);

if(capTimer == NULL) {
    Log_error0("Failed to open GPTimer");
    Task_exit();
    while(1);
}

GPTimerCC26XX_setCaptureEdge(capTimer, GPTimerCC26XX_BOTH_EDGES);
GPTimerCC26XX_registerInterrupt(capTimer, captureTimerCallback, GPT_INT_CAPTURE);

GPTimerCC26XX_start(capTimer);

Appreciate your help in sorting this out. 

Regards,

Satya