Enter sleep mode in the idle task.

This commit is contained in:
Richard Barry 2010-12-23 11:24:14 +00:00
parent 52b4c95301
commit 556fc15e99
8 changed files with 698 additions and 16 deletions

View file

@ -367,5 +367,12 @@ void vApplicationMallocFailedHook( void )
{
for( ;; );
}
/*-----------------------------------------------------------*/
void vApplicationIdleHook( void )
{
PWR_EnterSleepMode( PWR_Regulator_ON, PWR_SLEEPEntry_WFI );
}