Pacemaker code Implementation for SFWRENG 3K04
Dependencies: mbed Queue mbed-rtos FXOS8700Q
Fork of Pacemaker by
SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.
The project uses the Freescale K64F Microcontroller and C++ mbed library.
main.cpp
- Committer:
- FiveDollar
- Date:
- 2016-10-30
- Revision:
- 0:b2b3955cd77b
- Child:
- 1:9f1091a53ff5
File content as of revision 0:b2b3955cd77b:
#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; }