示例#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);
}