![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Pont Architecture Time Triggered OS
OS.h@0:823a9a4db739, 2011-10-27 (annotated)
- Committer:
- Lachrymosa
- Date:
- Thu Oct 27 22:01:30 2011 +0000
- Revision:
- 0:823a9a4db739
Incomplete Time Triggered OS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Lachrymosa | 0:823a9a4db739 | 1 | #ifndef OS_H_GUARD |
Lachrymosa | 0:823a9a4db739 | 2 | #define OS_H_GUARD |
Lachrymosa | 0:823a9a4db739 | 3 | #include "mbed.h" |
Lachrymosa | 0:823a9a4db739 | 4 | typedef struct { |
Lachrymosa | 0:823a9a4db739 | 5 | void(*fP)(void); |
Lachrymosa | 0:823a9a4db739 | 6 | int Delay; |
Lachrymosa | 0:823a9a4db739 | 7 | int Period; |
Lachrymosa | 0:823a9a4db739 | 8 | int RunMe; |
Lachrymosa | 0:823a9a4db739 | 9 | }pTask; //The Task List array structure |
Lachrymosa | 0:823a9a4db739 | 10 | |
Lachrymosa | 0:823a9a4db739 | 11 | void SCHUpdate(); |
Lachrymosa | 0:823a9a4db739 | 12 | void SCHDispatch(); |
Lachrymosa | 0:823a9a4db739 | 13 | int SCHRemoveTask(int i); |
Lachrymosa | 0:823a9a4db739 | 14 | int SCHAddTask(void(*fP)(void), int P, int D); |
Lachrymosa | 0:823a9a4db739 | 15 | #endif |