diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-16 23:59:14 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-16 23:59:14 +0000 |
commit | 1c16ae399a9f924c15d9dec54cacb1320ff0a92f (patch) | |
tree | 026174d2f65b998d9cb6b24156393fae40a0d60e /LUFA/Scheduler/Scheduler.h | |
parent | 8f6b4ddf764c3a54e42d00a7502c82c5c3e71b1c (diff) | |
download | lufa-1c16ae399a9f924c15d9dec54cacb1320ff0a92f.tar.gz lufa-1c16ae399a9f924c15d9dec54cacb1320ff0a92f.tar.bz2 lufa-1c16ae399a9f924c15d9dec54cacb1320ff0a92f.zip |
Partial commit: change references to Drivers/AT90USBXXX to Drivers/Peripheral.
Diffstat (limited to 'LUFA/Scheduler/Scheduler.h')
-rw-r--r-- | LUFA/Scheduler/Scheduler.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/LUFA/Scheduler/Scheduler.h b/LUFA/Scheduler/Scheduler.h index 979156e7c..904380cd3 100644 --- a/LUFA/Scheduler/Scheduler.h +++ b/LUFA/Scheduler/Scheduler.h @@ -114,7 +114,7 @@ * }
* \endcode
*/
- #define TASK_LIST extern TaskEntry_t Scheduler_TaskList[]; TaskEntry_t Scheduler_TaskList[] =
+ #define TASK_LIST TaskEntry_t Scheduler_TaskList[] =
/** Constant, giving the maximum delay in scheduler ticks which can be stored in a variable of type
* SchedulerDelayCounter_t.
@@ -127,16 +127,23 @@ /** Task status mode constant, for passing to Scheduler_SetTaskMode() or Scheduler_SetGroupTaskMode(). */
#define TASK_STOP false
- /** Starts the scheduler in its infinite loop, executing running tasks. This should be placed at the end
- * of the user application's main() function, as it can never return to the calling function.
- */
- #define Scheduler_Start() Scheduler_GoSchedule(TOTAL_TASKS);
-
- /** Initializes the scheduler so that the scheduler functions can be called before the scheduler itself
- * is started. This must be executed before any scheduler function calls other than Scheduler_Start(),
- * and can be omitted if no such functions could be called before the scheduler is started.
- */
- #define Scheduler_Init() Scheduler_InitScheduler(TOTAL_TASKS);
+ /* Psuedo-Functions: */
+ #if defined(__DOXYGEN__)
+ /** Starts the scheduler in its infinite loop, executing running tasks. This should be placed at the end
+ * of the user application's main() function, as it can never return to the calling function.
+ */
+ void Scheduler_Start(void);
+
+ /** Initializes the scheduler so that the scheduler functions can be called before the scheduler itself
+ * is started. This must be executed before any scheduler function calls other than Scheduler_Start(),
+ * and can be omitted if no such functions could be called before the scheduler is started.
+ */
+ void Scheduler_Init(void);
+ #else
+ #define Scheduler_Start() Scheduler_GoSchedule(TOTAL_TASKS);
+
+ #define Scheduler_Init() Scheduler_InitScheduler(TOTAL_TASKS);
+ #endif
/* Type Defines: */
/** Type define for a pointer to a scheduler task. */
|