void sx_schedule(u8 line) { if(button.flag.down) { sSchedule.currentlyShown = sSchedule.currentlyShown == TIME?PERIOD:TIME; update_schedule(line); } }
void thread_may_suspend() { thread_t *prev = scheduler_running_thread(); uint8_t total; update_schedule(); total = scheduler_ready_threads(prev->priority); if (!total) { return; } thread_suspend(); }
void display_schedule(u8 line, u8 update) { update_schedule(line); }
void mx_schedule(u8 line) { sSchedule.state = sSchedule.state == SCHEDULE_DISABLED?SCHEDULE_ENABLED:SCHEDULE_DISABLED; update_schedule(line); }