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
Child:
34:701503855d52
diff -r 69cd1390bc21 -r 686a1a0c690f VVI.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/VVI.cpp	Mon Dec 12 03:31:55 2016 +0000
@@ -0,0 +1,25 @@
+#include "rtos.h"
+#include "mbed.h"
+#include "hardware.h"
+#include "pulse.h"
+#include "chamberData.h"
+#include "pulse.h"
+#include "VVI.h"
+
+
+DigitalOut green(LED_GREEN);
+
+pulse* myChamber;
+
+void vvi_set_chamber(pulse* c){
+    myChamber = c;
+}
+
+void start_VVI(){
+    while(true){
+        green = !green;
+        myChamber->startPulse();
+        Thread::wait(200);
+        }
+}
+