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.

CCS/CC3220: #elif CC32XX

Part Number: CC3220

Tool/software: Code Composer Studio

Hi all,

I'm looking at the example of power_measurement, platform.c

In the function isWokenFromHib(void), i think the #elif CC32XX expression is not valid:

bool isWokenFromHib(void)
{
#ifdef __MSP432P401R__
    /* read from retention the cause for wakeup */
    return false;
#elif CC32XX
    if(MAP_PRCMSysResetCauseGet() == PRCM_HIB_EXIT)
    {
        return true;
    }
    else
    {
        return false;
    }
#endif
}

And should be modified to

bool isWokenFromHib(void)
{
#ifdef __MSP432P401R__  // or #if defined (__MSP432P401R__)
    /* read from retention the cause for wakeup */
    return false;
#elif defined (CC32XX)
    if(MAP_PRCMSysResetCauseGet() == PRCM_HIB_EXIT)
    {
        return true;
    }
    else
    {
        return false;
    }
#endif
}

Regards,

Jo