Exemplo n.º 1
0
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");
            }
        }
    }
}
Exemplo n.º 2
0
void TimerLowPowerHandler( void )
{
	if ( ( TimerListHead != NULL ) && ( TimerListHead->IsRunning == true ) ) 
	{	
		if ( HasLoopedThroughMain < 5 )
			HasLoopedThroughMain++;
		else
		{ 
			HasLoopedThroughMain = 0;
	
			if ( LowPowerModeEnable == true )
				RtcEnterLowPowerStopMode( );
			else
				TimerHwEnterLowPowerStopMode( );
		}
	}
}
Exemplo n.º 3
0
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
        }
    }
}