Code for an autonomous plane I'm building. Includes process scheduling, process communication, and hardware sensor interfacing (via I2C). NOTE: currently in development, source code will be updated frequently.

Dependencies:   mbed

control.h

Committer:
teamgoat
Date:
2013-11-01
Revision:
2:452dd766d212
Parent:
0:0c627ff4c5ed
Child:
4:44a5b1e8fd27

File content as of revision 2:452dd766d212:

#ifndef CONTROL_H
#define CONTROL_H

void schedule();
void init();

typedef struct
{
    unsigned int status;
    unsigned int block_pid;
    void (*start)(void);  
} process;

typedef enum
{
    READY,
    BLOCKED,
    ZOMBIE,
    EMPTY
} proc_stat;

#endif //CONTROL_H