예제 #1
0
void check_timer_overflow()
{
	CPcosDomain* pPcosDomain = pcoslib::getCurrentDomain();
	if(NULL != pPcosDomain)
	{
		if(CPcosDomain::PlcRunning == pPcosDomain->getState())		 
		{
			
			if(timer_inc())
			{
				pPcosDomain ->StopReq();				
			} 
			//pPcosDomain ->StopReq();		
			//pPcosDomain ->ColdStartReq();
		}
		else
		{
			timer_clear();
		}
	}
	
}
예제 #2
0
void C_IRQ_Handler (void)
{
	timer_inc();
}