Eric Tran
/
PacemakerVOORforkTest
eric's fork test
Fork of Pacemaker by
main.cpp@0:b2b3955cd77b, 2016-10-30 (annotated)
- Committer:
- FiveDollar
- Date:
- Sun Oct 30 16:04:52 2016 +0000
- Revision:
- 0:b2b3955cd77b
- Child:
- 1:9f1091a53ff5
Initial Commit
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:b2b3955cd77b | 8 | |
FiveDollar | 0:b2b3955cd77b | 9 | int main(){ |
FiveDollar | 0:b2b3955cd77b | 10 | hardware* io = new hardware(); |
FiveDollar | 0:b2b3955cd77b | 11 | chamberData* atrium = new chamberData(io->getSerial(),'a'); |
FiveDollar | 0:b2b3955cd77b | 12 | chamberData* ventricle = new chamberData(io->getSerial(), 'v'); |
FiveDollar | 0:b2b3955cd77b | 13 | pulse* ventPulse = new pulse(ventricle,io); |
FiveDollar | 0:b2b3955cd77b | 14 | interface a(io->getSerial() , ventPulse , atrium , ventricle); |
FiveDollar | 0:b2b3955cd77b | 15 | |
FiveDollar | 0:b2b3955cd77b | 16 | |
FiveDollar | 0:b2b3955cd77b | 17 | delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc. |
FiveDollar | 0:b2b3955cd77b | 18 | delete atrium; |
FiveDollar | 0:b2b3955cd77b | 19 | delete ventPulse; |
FiveDollar | 0:b2b3955cd77b | 20 | delete io; |
FiveDollar | 0:b2b3955cd77b | 21 | |
FiveDollar | 0:b2b3955cd77b | 22 | return 0; |
FiveDollar | 0:b2b3955cd77b | 23 | } |