Пример #1
0
void sx_schedule(u8 line)
{
	if(button.flag.down)
	{
		sSchedule.currentlyShown = sSchedule.currentlyShown == TIME?PERIOD:TIME;
		update_schedule(line);
	}
}
Пример #2
0
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();
}
Пример #3
0
void display_schedule(u8 line, u8 update)
{
	update_schedule(line);
}
Пример #4
0
void mx_schedule(u8 line)
{
	sSchedule.state = sSchedule.state == SCHEDULE_DISABLED?SCHEDULE_ENABLED:SCHEDULE_DISABLED;
	update_schedule(line);
}