imu rev1
Fork of AIviate by
control.h@0:0c627ff4c5ed, 2013-10-30 (annotated)
- Committer:
- teamgoat
- Date:
- Wed Oct 30 02:31:43 2013 +0000
- Revision:
- 0:0c627ff4c5ed
- Child:
- 2:452dd766d212
First compiled version (reads sensors, I think)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
teamgoat | 0:0c627ff4c5ed | 1 | #ifndef CONTROL_H |
teamgoat | 0:0c627ff4c5ed | 2 | #define CONTROL_H |
teamgoat | 0:0c627ff4c5ed | 3 | |
teamgoat | 0:0c627ff4c5ed | 4 | typedef struct |
teamgoat | 0:0c627ff4c5ed | 5 | { |
teamgoat | 0:0c627ff4c5ed | 6 | unsigned int status; |
teamgoat | 0:0c627ff4c5ed | 7 | unsigned int block_pid; |
teamgoat | 0:0c627ff4c5ed | 8 | void (*start)(void); |
teamgoat | 0:0c627ff4c5ed | 9 | } process; |
teamgoat | 0:0c627ff4c5ed | 10 | |
teamgoat | 0:0c627ff4c5ed | 11 | typedef enum |
teamgoat | 0:0c627ff4c5ed | 12 | { |
teamgoat | 0:0c627ff4c5ed | 13 | READY, |
teamgoat | 0:0c627ff4c5ed | 14 | BLOCKED, |
teamgoat | 0:0c627ff4c5ed | 15 | ZOMBIE, |
teamgoat | 0:0c627ff4c5ed | 16 | EMPTY |
teamgoat | 0:0c627ff4c5ed | 17 | } proc_stat; |
teamgoat | 0:0c627ff4c5ed | 18 | |
teamgoat | 0:0c627ff4c5ed | 19 | #endif //CONTROL_H |