Rev 1232 | Rev 1239 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1233 | giacomo | 1 | #ifndef FUNC_H |
2 | #define FUNC_H |
||
3 | |||
4 | struct loader_task { |
||
5 | char name[20]; |
||
6 | int number; |
||
7 | int group; |
||
8 | int server; |
||
9 | int local_scheduler; |
||
10 | struct timespec deadline; |
||
11 | struct timespec wcet; |
||
12 | int act_number; |
||
13 | struct timespec *act; |
||
14 | struct timespec *exec; |
||
15 | }; |
||
16 | |||
17 | #define LOADER_POSIX_SCHEDULER 0 |
||
18 | #define LOADER_EDF_SCHEDULER 1 |
||
19 | #define LOADER_RM_SCHEDULER 2 |
||
20 | #define LOADER_MPEGSTAR_SCHEDULER 3 |
||
21 | |||
22 | /* Calibration Loops */ |
||
23 | #define CALIBRATION_DELTA 10000 |
||
24 | |||
25 | |||
26 | extern int cal_cycles; |
||
27 | extern struct timespec zero_time; |
||
28 | |||
29 | |||
30 | |||
1232 | giacomo | 31 | #define SHARK |
32 | #if defined SHARK |
||
1233 | giacomo | 33 | #include "shark.h" |
34 | |||
1232 | giacomo | 35 | #define get_current_exec_task() exec_shadow |
1233 | giacomo | 36 | #define generic_calibration_func calibration_func |
1232 | giacomo | 37 | #define generic_create_thread fsf_create_thread |
38 | #define generic_calibrate_cycle calibrate_cycle |
||
39 | #define generic_set_next_activation set_next_activation |
||
40 | #define generic_set_simulation_time set_simulation_time |
||
41 | #define generic_get_task_model get_task_model |
||
1233 | giacomo | 42 | #define generic_fsfinit() fsfinit() |
43 | #define generic_task_endcycle() ; |
||
1232 | giacomo | 44 | #endif |
45 | |||
1233 | giacomo | 46 | #endif |
47 | |||
48 |