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@3:84d3ef9acd17, 2016-11-14 (annotated)
- Committer:
- FiveDollar
- Date:
- Mon Nov 14 01:28:27 2016 +0000
- Revision:
- 3:84d3ef9acd17
- Parent:
- 1:9f1091a53ff5
- Child:
- 9:b48423a135d8
added ending comments
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 | |
trane3 | 1:9f1091a53ff5 | 9 | //comment testing |
trane3 | 1:9f1091a53ff5 | 10 | //adding comments to test version control functionality |
trane3 | 1:9f1091a53ff5 | 11 | |
FiveDollar | 0:b2b3955cd77b | 12 | int main(){ |
FiveDollar | 0:b2b3955cd77b | 13 | hardware* io = new hardware(); |
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 | 3:84d3ef9acd17 | 17 | interface a(io->getSerial() , ventPulse , atrium , ventricle); |
FiveDollar | 0:b2b3955cd77b | 18 | delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc. |
FiveDollar | 0:b2b3955cd77b | 19 | delete atrium; |
FiveDollar | 0:b2b3955cd77b | 20 | delete ventPulse; |
FiveDollar | 0:b2b3955cd77b | 21 | delete io; |
FiveDollar | 0:b2b3955cd77b | 22 | |
FiveDollar | 0:b2b3955cd77b | 23 | return 0; |
FiveDollar | 3:84d3ef9acd17 | 24 | } |
FiveDollar | 3:84d3ef9acd17 | 25 | |
FiveDollar | 3:84d3ef9acd17 | 26 | //added ending comments |