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(); } } }
void C_IRQ_Handler (void) { timer_inc(); }