I want to test the deepsleep powermode of cc3200 . I have runned the project of deepsleep_nw. It works well.
Then i copy these function (vApplicationIdleHook( void)) to my project .I find it does not work.There are no message reported .
This is my function . What should i do .
#include "FreeRTOS.h"
#include "osi.h"
void
vApplicationIdleHook( void )
{
int iRetVal;
//
// Enter SLEEP...WaitForInterrupt ARM intrinsic
//
Report("DEEPSLEEP: Entering DeepSleep\n\r");
//MAP_UtilsDelay(80000);
for(iRetVal = 0; iRetVal < 80000; iRetVal++);
//
// Disable the SYSTICK interrupt
//
MAP_IntDisable(FAULT_SYSTICK);
MAP_PRCMDeepSleepEnter();
//
// Enable the SYSTICK interrupt
//
MAP_IntEnable(FAULT_SYSTICK);
Report("DEEPSLEEP: Exiting DeepSleep\n\r");
}
IN FreeRTOSConfig.h
#define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 1
#define configUSE_TICK_HOOK 0 // 1