Partial commit: change references to Drivers/AT90USBXXX to Drivers/Peripheral.
[pub/lufa.git] / LUFA / Scheduler / Scheduler.h
index 979156e..904380c 100644 (file)
                         *      }\r
                         *  \endcode\r
                         */\r
                         *      }\r
                         *  \endcode\r
                         */\r
-                       #define TASK_LIST                         extern TaskEntry_t Scheduler_TaskList[]; TaskEntry_t Scheduler_TaskList[] = \r
+                       #define TASK_LIST                         TaskEntry_t Scheduler_TaskList[] = \r
                        \r
                        /** Constant, giving the maximum delay in scheduler ticks which can be stored in a variable of type\r
                         *  SchedulerDelayCounter_t.\r
                        \r
                        /** Constant, giving the maximum delay in scheduler ticks which can be stored in a variable of type\r
                         *  SchedulerDelayCounter_t.\r
                        /** Task status mode constant, for passing to Scheduler_SetTaskMode() or Scheduler_SetGroupTaskMode(). */\r
                        #define TASK_STOP                         false\r
                        \r
                        /** Task status mode constant, for passing to Scheduler_SetTaskMode() or Scheduler_SetGroupTaskMode(). */\r
                        #define TASK_STOP                         false\r
                        \r
-                       /** Starts the scheduler in its infinite loop, executing running tasks. This should be placed at the end\r
-                        *  of the user application's main() function, as it can never return to the calling function.\r
-                        */\r
-                       #define Scheduler_Start()                 Scheduler_GoSchedule(TOTAL_TASKS);\r
-                       \r
-                       /** Initializes the scheduler so that the scheduler functions can be called before the scheduler itself\r
-                        *  is started. This must be executed before any scheduler function calls other than Scheduler_Start(),\r
-                        *  and can be omitted if no such functions could be called before the scheduler is started.\r
-                        */\r
-                       #define Scheduler_Init()                  Scheduler_InitScheduler(TOTAL_TASKS);\r
+               /* Psuedo-Functions: */\r
+                       #if defined(__DOXYGEN__)\r
+                               /** Starts the scheduler in its infinite loop, executing running tasks. This should be placed at the end\r
+                                *  of the user application's main() function, as it can never return to the calling function.\r
+                                */\r
+                               void Scheduler_Start(void);\r
+                               \r
+                               /** Initializes the scheduler so that the scheduler functions can be called before the scheduler itself\r
+                                *  is started. This must be executed before any scheduler function calls other than Scheduler_Start(),\r
+                                *  and can be omitted if no such functions could be called before the scheduler is started.\r
+                                */\r
+                               void Scheduler_Init(void);\r
+                       #else\r
+                               #define Scheduler_Start()                 Scheduler_GoSchedule(TOTAL_TASKS);\r
+                               \r
+                               #define Scheduler_Init()                  Scheduler_InitScheduler(TOTAL_TASKS);\r
+                       #endif\r
 \r
                /* Type Defines: */\r
                        /** Type define for a pointer to a scheduler task. */\r
 \r
                /* Type Defines: */\r
                        /** Type define for a pointer to a scheduler task. */\r