42
|
1 #ifndef INCLUDED_SCHED_TASKLIST
|
|
2 #define INCLUDED_SCHED_TASKLIST
|
|
3
|
109
|
4 #ifndef INCLUDED_BASE_H_
|
|
5 # include "base.h"
|
|
6 #endif
|
|
7
|
42
|
8 #ifndef INCLUDED_SCHEDULER
|
|
9 # include "Scheduler.h"
|
|
10 #endif
|
|
11
|
|
12 #ifndef INCLUDED_SCHED_TASK_BASE
|
|
13 # include "SchedTaskBase.h"
|
|
14 #endif
|
|
15
|
|
16 #include "error.h"
|
|
17
|
|
18 class SchedTaskList : public SchedTaskBase {
|
|
19 public:
|
|
20 /* constructor */
|
109
|
21 SchedTaskList(unsigned int addr, Scheduler *sched);
|
|
22
|
|
23 BASE_NEW_DELETE(SchedTaskList);
|
42
|
24
|
|
25 /* variables */
|
|
26 unsigned int params_addr;
|
|
27 TaskListPtr list;
|
109
|
28 Scheduler *scheduler;
|
|
29
|
|
30 int flag_renewTaskList;
|
42
|
31
|
|
32 /* functions */
|
|
33 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
|
|
34
|
|
35 /* override functions */
|
|
36 void read(void);
|
|
37
|
|
38 #ifdef DEBUG
|
|
39 void exec(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); }
|
|
40 void write(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); }
|
|
41 #endif
|
|
42
|
|
43 };
|
|
44
|
184
|
45 const int SCHED_TASKLIST_NORMAL = 0;
|
|
46 const int SCHED_TASKLIST_RENEW = 1;
|
|
47
|
42
|
48 #endif
|
184
|
49
|
|
50 extern SchedTaskList* createSchedTaskList(uint32, Scheduler*, int);
|