Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

Committer:
FiveDollar
Date:
Tue Nov 15 20:30:12 2016 +0000
Revision:
9:b48423a135d8
Parent:
3:84d3ef9acd17
Child:
11:35b259e70c9a
update printing of general data (Gareth)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FiveDollar 0:b2b3955cd77b 1 #pragma once
FiveDollar 0:b2b3955cd77b 2 #include "mbed.h"
FiveDollar 0:b2b3955cd77b 3 #include "chamberData.h"
FiveDollar 0:b2b3955cd77b 4 #include "genData.h"
FiveDollar 0:b2b3955cd77b 5 #include "pulse.h"
FiveDollar 0:b2b3955cd77b 6 #include "hardware.h"
FiveDollar 0:b2b3955cd77b 7 #include "interface.h"
FiveDollar 9:b48423a135d8 8 #include "voor.h"
FiveDollar 9:b48423a135d8 9 #include "sense.h"
trane3 2:9f1091a53ff5 10
FiveDollar 0:b2b3955cd77b 11 int main(){
FiveDollar 0:b2b3955cd77b 12 hardware* io = new hardware();
FiveDollar 9:b48423a135d8 13 genData* generalData = new genData();
FiveDollar 0:b2b3955cd77b 14 chamberData* atrium = new chamberData(io->getSerial(),'a');
FiveDollar 0:b2b3955cd77b 15 chamberData* ventricle = new chamberData(io->getSerial(), 'v');
FiveDollar 0:b2b3955cd77b 16 pulse* ventPulse = new pulse(ventricle,io);
FiveDollar 9:b48423a135d8 17 interface a(io->getSerial() , ventPulse , generalData, atrium , ventricle);
FiveDollar 9:b48423a135d8 18 a.startScreen();
FiveDollar 0:b2b3955cd77b 19 delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc.
FiveDollar 0:b2b3955cd77b 20 delete atrium;
FiveDollar 0:b2b3955cd77b 21 delete ventPulse;
FiveDollar 0:b2b3955cd77b 22 delete io;
FiveDollar 0:b2b3955cd77b 23
FiveDollar 0:b2b3955cd77b 24 return 0;
FiveDollar 9:b48423a135d8 25 }