modm API documentation
modm::Scheduler Class Reference

Scheduler. More...

#include <modm/processing/scheduler/scheduler.hpp>

Classes

class  Task
 Scheduler task More...
 

Public Typedefs

typedef uint8_t Priority
 

Public Member Functions

void scheduleTask (Task &task, uint16_t period, Priority priority=127)
 
void schedule ()
 
void scheduleInterupt ()
 

Detailed Description

Scheduler.

If the schedule() method is call from a timer interrupt, this scheduler is a priority based preemptive scheduler, meaning that always the task with the highest priority is executed. It will only change tasks if a task with a higher priority becomes ready or the current task ends.

Warning
Works for ATmega, but currently not for the ATxmega!
Author
Fabian Greif

The documentation for this class was generated from the following files: