void OS::idle_process_user_hook() { TCritSect cs; IDLE_HOOK.Cpl(); }
void OS::system_timer_user_hook() { TCritSect cs; // STM8 can complement bit atomically (BCPL), but IAR/STM8 1.30 can't :-( TIMER_HOOK.Cpl(); }