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.
Diff: hardware.cpp
- Revision:
- 5:253c33930e91
- Parent:
- 2:fbba2687ddfe
- Child:
- 8:75c1dd8b0d61
--- a/hardware.cpp Mon Nov 14 01:29:57 2016 +0000 +++ b/hardware.cpp Mon Nov 14 02:11:34 2016 +0000 @@ -3,7 +3,7 @@ #include "mbed.h" PwmOut atrium(PTC12); -PwmOut ventricle(PTC12; +PwmOut ventricle(PTC12); Serial pc(USBTX,USBRX); @@ -18,7 +18,7 @@ return p; } -AnalogOut* hardware::getChamber(char chamber){ +PwmOut* hardware::getChamber(char chamber){ if(chamber == 'a'){ PwmOut* a = &atrium; return a;