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.

CC3235MODSF: Differentiate GPIO wake up from regular wake up in Intermittently Connected state

Part Number: CC3235MODSF


Hi,

I have set the CC3235 launchpad to intermittently connected mode by using the sample program. It automatically wake up in certain interval and by activate the GPIO pin. I would like to differentiate normal wake up and GPIO wake up.

I have updated the function name in wakeLPDSFxn, but it is never called.

Could you please help me to differentiate the gpio wake up from regular wake up.

const PowerCC32XX_ConfigV1 PowerCC32XX_config = {
.policyInitFxn = PowerCC32XX_initPolicy,
.policyFxn = PowerCC32XX_sleepPolicy,
.enterLPDSHookFxn = wakeHookFxn,
.resumeLPDSHookFxn = wakeLPDSFxn,
.enablePolicy = true,
.enableGPIOWakeupLPDS = true,
.enableGPIOWakeupShutdown = true,
.enableNetworkWakeupLPDS = true,
.wakeupGPIOSourceLPDS = PRCM_LPDS_GPIO13,
.wakeupGPIOTypeLPDS = PRCM_LPDS_FALL_EDGE,
.wakeupGPIOFxnLPDS = gpioWakeFxn,
.wakeupGPIOFxnLPDSArg = 0,
.wakeupGPIOSourceShutdown = PRCM_HIB_GPIO13,
.wakeupGPIOTypeShutdown = PRCM_HIB_RISE_EDGE,
.ramRetentionMaskLPDS = PRCM_SRAM_COL_1|PRCM_SRAM_COL_2|PRCM_SRAM_COL_3|PRCM_SRAM_COL_4,
.keepDebugActiveDuringLPDS = true,
.ioRetentionShutdown = PRCM_IO_RET_GRP_1,
.pinParkDefs = parkInfo,
.numPins = 31
};

void gpioWakeFxn(uint_least8_t argument)
{

g_performOtaCommand = 1;

}

Regards,

Sundar