Functions | |
Simple Scheduler OVERVIEW This module is a simple scheduler CONFIGURATION< PRE > In config none constrainst it is possible to define another scheduler type | Scheduler_task_x_init (optional, except Scheduler_task_1_init) x from 1 to 11 |
Simple Scheduler OVERVIEW This module is a simple scheduler CONFIGURATION< PRE > In config none constrainst it is possible to define another scheduler type defines the init | functions (init of task or general purpose init) 3/Scheduler_task_x(optional |
Simple Scheduler OVERVIEW This module is a simple scheduler CONFIGURATION< PRE > In config none constrainst it is possible to define another scheduler type defines the init except Scheduler_task_1 x from defines the task functions | Scheduler_time_init (optional) defines the function that will be called to initialize time events |
void | scheduler_tasks (void) |
Task execution scheduler. | |
void | scheduler (void) |
Init & run the scheduler. | |
void | scheduler_empty_fct (void) |
Do nothing Avoid uncalled segment warning if the empty function is not used. | |
Variables | |
Simple Scheduler OVERVIEW This module is a simple scheduler CONFIGURATION< PRE > In config | h |
Simple Scheduler OVERVIEW This module is a simple scheduler CONFIGURATION< PRE > In config none constrainst | SCHEDULER_TIMED |
Simple Scheduler OVERVIEW This module is a simple scheduler CONFIGURATION< PRE > In config none constrainst it is possible to define another scheduler type defines the init except Scheduler_task_1 x from | to |
|
|
|
|
|
Definition at line 26 of file scheduler.txt. Referenced by scheduler_init(). 00027 : soft timers, tempo... 00028 00029 5/ SCHEDULER_ENABLE_IT (optional) 00030 allow to enable interrupts after all initializations 00031 00032 6/ '#define scheduler main' (optional) 00033 if the main is only a call to the scheduler 00034 00035 7/ TOKEN_MODE (optional) 00036 To activate a token variable to avoid that tasks executes at same time. 00037 A unique token ID must be defined for each task that cannot been executed in parallel. 00038 (Example : #define TASK_TOKEN_ID TASK_ID) 00039 00040 EXAMPLE 00041 ------- 00042 | 00043 |// File: config.h 00044 |#define Scheduler_time_init init_soft_timers 00045 | 00046 |#define Scheduler_task_1_init twi_lib_init 00047 |#define Scheduler_task_2_init init_leds_task 00048 |#define Scheduler_task_3_init stdo_init 00049 |#define Scheduler_task_4_init init_main_task 00050 |#define Scheduler_task_5_init stdi_init 00051 | 00052 |#define Scheduler_task_1 leds_task 00053 |#define Scheduler_task_3 main_task 00054 |#define Scheduler_task_4 stdi_update_kbhit 00055 | 00056 |#define SCHEDULER_TYPE SCHEDULER_FREE 00057 | 00058 00059 // File: scheduler.c / scheduler.h (after precompiler) 00060 void scheduler_init (void) 00061 { 00062 init_soft_timers(); 00063 twi_lib_init(); 00064 init_leds_task(); 00065 stdo_init(); 00066 init_main_task(); 00067 stdi_init(); 00068 ; 00069 }
|
|
Task execution scheduler.
Definition at line 72 of file scheduler.txt. References Scheduler_call_next_task, scheduler_empty_fct(), Scheduler_new_schedule, Scheduler_task_1, and Scheduler_task_2. 00073 { 00074 scheduler_empty_fct(); 00075 for(;;) 00076 { 00077 leds_task(); 00078 ; 00079 main_task(); 00080 ; 00081 stdi_update_kbhit(); 00082 ; 00083 ; 00084 } 00085 }
Here is the call graph for this function: ![]() |
|
Init & run the scheduler.
Definition at line 88 of file scheduler.txt. References scheduler_init(), and scheduler_tasks(). 00089 { 00090 scheduler_init(); 00091 scheduler_tasks(); 00092 }
Here is the call graph for this function: ![]() |
|
Do nothing Avoid uncalled segment warning if the empty function is not used.
Definition at line 95 of file scheduler.txt.
|
|
Definition at line 15 of file scheduler.txt. |
|
Definition at line 15 of file scheduler.txt. |
|
Definition at line 24 of file scheduler.txt. |