Eric Tran / Mbed 2 deprecated 3K04EricTheadfork

Dependencies:   mbed-rtos mbed

Fork of Pacemaker by 3k04 team

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #pragma once
00002 #include "mbed.h"
00003 #include "chamberData.h"
00004 #include "genData.h"
00005 #include "pulse.h"
00006 #include "hardware.h"
00007 #include "interface.h"
00008 #include "voor.h"
00009 #include "sense.h"
00010 #include "rtos.h"
00011 
00012 int main(){
00013     hardware* io = new hardware();
00014     genData* generalData = new genData();
00015     chamberData* atrium = new chamberData(io->getSerial(),'a');
00016     chamberData* ventricle = new chamberData(io->getSerial(), 'v');
00017     pulse* ventPulse = new pulse(ventricle,io);
00018     pulse* atrPulse = new pulse(atrium,io);
00019     interface a(io->getSerial() , ventPulse , generalData, atrium , ventricle); 
00020     //if 
00021     a.startScreen();   
00022     
00023     
00024     delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc.
00025     delete atrium;
00026     delete ventPulse;
00027     delete io;
00028     
00029 return 0;
00030     }