static void Timer_int() { if( Dev::TimerIntClear() ) { if( RoundInc(Sec_cnt,SecCnt) ) { Time_sec++; Time_clock.update(Dev::TimerClock()); } if( RoundInc(MSec_cnt,MSecCnt) ) { if( (Time_msec&511)<256 ) Dev::LightOn(1u<<3); else Dev::LightOff(1u<<3); Time_msec++; } if( RoundInc(Tick_cnt,TickCnt) ) { Task::Internal::Tick_int(); } } }
static ClockTimeType GetClockTime() noexcept { Dev::IntLock lock; return Time_clock.update(Dev::TimerClock()); }