Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

Revision:
0:b2b3955cd77b
Child:
2:9f1091a53ff5
diff -r 000000000000 -r b2b3955cd77b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 30 16:04:52 2016 +0000
@@ -0,0 +1,23 @@
+#pragma once
+#include "mbed.h"
+#include "chamberData.h"
+#include "genData.h"
+#include "pulse.h"
+#include "hardware.h"
+#include "interface.h"
+
+int main(){
+    hardware* io = new hardware();
+    chamberData* atrium = new chamberData(io->getSerial(),'a');
+    chamberData* ventricle = new chamberData(io->getSerial(), 'v');
+    pulse* ventPulse = new pulse(ventricle,io);
+    interface a(io->getSerial() , ventPulse , atrium , ventricle);
+    
+    
+    delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc.
+    delete atrium;
+    delete ventPulse;
+    delete io;
+    
+return 0;
+    }
\ No newline at end of file