Tool/software: Code Composer Studio
Hi, I completely don't understand how configure standby mode.
I am trying to develop code that introduces the processor to standby mode so that it wakes up from the RTC clock
Clock_Struct MainClock; void mainClockFxn(UArg arg0) { GPIO_toggleDio(LED); // Toggle LED PowerCC26XX_standbyPolicy(); } void ClockConfig(void) { uint32_t period = 1000000/Clock_tickPeriod; // 1sec clock config Clock_Params clkParams; Clock_Params_init(&clkParams); clkParams.period = period; clkParams.startFlag = TRUE; Clock_construct(&MainClock, (Clock_FuncPtr)mainClockFxn, period, &clkParams); } void MonitorTaskFunction(UArg arg0, UArg arg1) { ClockConfig(); Power_enablePolicy(); PowerCC26XX_standbyPolicy(); while(1) { } }
How to correctly implement standby mode?