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