Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   mbed Queue mbed-rtos FXOS8700Q

Fork of Pacemaker by Eric dollar

SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.

The project uses the Freescale K64F Microcontroller and C++ mbed library.

Revision:
33:686a1a0c690f
Parent:
32:69cd1390bc21
Child:
34:701503855d52
--- a/main.cpp	Tue Dec 06 20:57:56 2016 +0000
+++ b/main.cpp	Mon Dec 12 03:31:55 2016 +0000
@@ -8,6 +8,7 @@
 #include "voor.h"
 #include "sense.h"
 #include "motion.h"
+#include "VVI.h"
 
 int main(){
     hardware* io = new hardware();
@@ -17,10 +18,14 @@
     pulse* ventPulse = new pulse(ventricle,io);
     pulse* atrPulse = new pulse(atrium,io);
     
-    Thread motionThread(osPriorityNormal);
-    initialize_motion ();
-    motion_set_chamber(0, ventricle);
-    motionThread.start(motion_thread);
+//    Thread motionThread(osPriorityNormal);
+//    initialize_motion ();
+//    motion_set_chamber(0, ventricle);
+//    motionThread.start(motion_thread);
+    
+    Thread vviThread(osPriorityNormal);
+    vvi_set_chamber(atrPulse);
+    vviThread.start(start_VVI);
     
 //    Thread egramThread(osPriorityNormal);
 //    egramThread.start(storeData);