Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   mbed Queue mbed-rtos FXOS8700Q

Fork of Pacemaker by Eric dollar

SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.

The project uses the Freescale K64F Microcontroller and C++ mbed library.

VVI.cpp

Committer:
noahzwiep
Date:
2016-12-12
Revision:
33:686a1a0c690f
Child:
34:701503855d52

File content as of revision 33:686a1a0c690f:

#include "rtos.h"
#include "mbed.h"
#include "hardware.h"
#include "pulse.h"
#include "chamberData.h"
#include "pulse.h"
#include "VVI.h"


DigitalOut green(LED_GREEN);

pulse* myChamber;

void vvi_set_chamber(pulse* c){
    myChamber = c;
}

void start_VVI(){
    while(true){
        green = !green;
        myChamber->startPulse();
        Thread::wait(200);
        }
}