X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/e11fddfe66fcd6fa5b783bb5f1c39dfb5687538d..fa1a092901319b3b41bf09e0c4cb9cbbec470d6b:/LUFA/Scheduler/Scheduler.h diff --git a/LUFA/Scheduler/Scheduler.h b/LUFA/Scheduler/Scheduler.h index 1ed6491d0..024a2c22f 100644 --- a/LUFA/Scheduler/Scheduler.h +++ b/LUFA/Scheduler/Scheduler.h @@ -29,6 +29,7 @@ */ /** \file + * \brief Simple round-robbin pseudo-task scheduler. * * Simple round-robbin cooperative scheduler for use in basic projects where non real-time tasks need * to be executed. Each task is executed in sequence, and can be enabled or disabled individually or as a group. @@ -61,7 +62,7 @@ * { * { .Task = MyTask1, .TaskStatus = TASK_RUN, .GroupID = 1 }, * { .Task = MyTask2, .TaskStatus = TASK_RUN, .GroupID = 1 }, - * }; + * } * * int main(void) * { @@ -86,16 +87,12 @@ #define __SCHEDULER_H__ /* Includes: */ - #if defined(__AVR32__) - #include - #include - #elif defined(__AVR__) #include - #include #include - #endif + + #include - #include "../Common/Common.h" + #include "../Common/Common.h" /* Enable C linkage for C++ Compilers: */ #if defined(__cplusplus) @@ -168,7 +165,10 @@ */ typedef uint16_t SchedulerDelayCounter_t; - /** Structure for holding a single task's information in the scheduler task list. */ + /** \brief Scheduler Task List Entry Structure. + * + * Structure for holding a single task's information in the scheduler task list. + */ typedef struct { TaskPtr_t Task; /**< Pointer to the task to execute. */