Pont Architecture Time Triggered OS

Dependencies:   mbed ITG3200

main.cpp

Committer:
Lachrymosa
Date:
2011-10-27
Revision:
0:823a9a4db739

File content as of revision 0:823a9a4db739:

#include "mbed.h"
//#include "ITG3200.h"
Serial debug(USBTX, USBRX); // tx, rx
//#include "Debug.h"
//#include "Globals.h"
#include "Constants.h"
#include "Ledtask.h"
//#include "Ledtask.c"
//#include "Gyrotask.h"
//#include "Gyrotask.c"
#include "OS.h"
//#include "OS.c"


Ticker interrupt;


int main() 
{
debug.printf("ticker start");
void Led1Init();
debug.printf("LED1InitComplete \n \r");
interrupt.attach(&SCHUpdate, 1); //Starting up the ticker for SCHUpdate.
debug.printf("Interrupt Started \n \r");
SCHAddTask(Led1Run,1,1); //adding our LED task.
//SCHAddTask(Gyrotask,0.2,0.2); //adding the Gyro Task.
debug.printf("Task Added \n \r");
    
    while(1) 
    {
        SCHDispatch();
    }
}