Hi
I am trying to enable TIMER0 and TIMER1 in cc2640 but the Board_GPTIMER0A opened successfully and then I want open Board_GPTIMER3A but I cant open this.
can you please guide me how to do this and I also attached my code please guide me whats wrong with it
GPTimerCC26XX_Params_init(¶ms); params.width = GPT_CONFIG_16BIT; params.mode = GPT_MODE_PERIODIC_UP; params.debugStallMode = GPTimerCC26XX_DEBUG_STALL_OFF; hTimer = GPTimerCC26XX_open(Board_GPTIMER3A, ¶ms); if(hTimer == NULL) { Log_error0("Failed to open GPTimer"); Task_exit(); } Types_FreqHz freq; BIOS_getCpuFreq(&freq); GPTimerCC26XX_Value loadVal = freq.lo / 10 - 1; GPTimerCC26XX_setLoadValue(hTimer, loadVal); GPTimerCC26XX_registerInterrupt(hTimer, timerCallback, GPT_INT_TIMEOUT); // Timer Configuration For Shutdown GPTimerCC26XX_Params paramsShutdown; GPTimerCC26XX_Params_init(¶msShutdown); paramsShutdown.width = GPT_CONFIG_16BIT; paramsShutdown.mode = GPT_MODE_PERIODIC_UP; paramsShutdown.debugStallMode = GPTimerCC26XX_DEBUG_STALL_OFF; sTimer = GPTimerCC26XX_open(Board_GPTIMER0A, ¶msShutdown); if(sTimer == NULL) { Log_error0("Failed to open GPTimer"); Task_exit(); } Types_FreqHz freqShutdown; BIOS_getCpuFreq(&freqShutdown); GPTimerCC26XX_Value loadValShutdown = freqShutdown.lo /100 - 1; GPTimerCC26XX_setLoadValue(sTimer, loadValShutdown); GPTimerCC26XX_registerInterrupt(sTimer, timerCallback1, GPT_INT_TIMEOUT);