Pont Architecture Time Triggered OS

Dependencies:   mbed ITG3200

Revision:
0:823a9a4db739
diff -r 000000000000 -r 823a9a4db739 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 27 22:01:30 2011 +0000
@@ -0,0 +1,34 @@
+#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();
+    }
+}
+