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:
36:b6431cd8ecd6
Parent:
34:701503855d52
diff -r fa164704f0ca -r b6431cd8ecd6 main.cpp
--- a/main.cpp	Tue Dec 13 04:34:36 2016 +0000
+++ b/main.cpp	Sun Dec 18 02:29:59 2016 +0000
@@ -19,17 +19,16 @@
     pulse* atrPulse = new pulse(atrium,io);
     sense* isSense = new sense(generalData);
     
-//    Thread motionThread(osPriorityNormal);
-//    initialize_motion ();
-//    motion_set_chamber(0, ventricle);
-//    motionThread.start(motion_thread);
     
     Thread vviThread(osPriorityNormal);
     vvi_set_chamber(atrPulse,atrium,isSense);
     vviThread.start(start_VVI);
     
-//    Thread egramThread(osPriorityNormal);
-//    egramThread.start(storeData);
+    Thread motionThread(osPriorityBelowNormal);
+    initialize_motion ();
+    motion_set_chamber(0, ventricle);
+    motionThread.start(motion_thread);
+
     
     interface a(io->getSerial() , ventPulse , generalData, atrium , ventricle,io);