void TimerLowPowerHandler( void ) { if( ( TimerListHead != NULL ) && ( TimerListHead->IsRunning == true ) ) { if( HasLoopedThroughMain < 5 ) // attention modifié pour test { printf("HasLoopedThroughMain %d\n", HasLoopedThroughMain); HasLoopedThroughMain++; } else { HasLoopedThroughMain = 0; if( LowPowerModeEnable == true ) { RtcEnterLowPowerStopMode( ); printf("RtcEnterLowPowerStopMode\n"); } else { TimerHwEnterLowPowerStopMode( ); printf("TimerHwEnterLowPowerStopMode\n"); } } } }
void TimerLowPowerHandler( void ) { if ( ( TimerListHead != NULL ) && ( TimerListHead->IsRunning == true ) ) { if ( HasLoopedThroughMain < 5 ) HasLoopedThroughMain++; else { HasLoopedThroughMain = 0; if ( LowPowerModeEnable == true ) RtcEnterLowPowerStopMode( ); else TimerHwEnterLowPowerStopMode( ); } } }
void TimerLowPowerHandler( void ) { if( ( TimerListHead != NULL ) && ( TimerListHead->IsRunning == true ) ) { if( HasLoopedThroughMain < 5 ) { HasLoopedThroughMain++; } else { HasLoopedThroughMain = 0; #ifdef LOW_POWER_MODE_ENABLE RtcEnterLowPowerStopMode( ); #else TimerHwEnterLowPowerStopMode( ); #endif } } }