yay!

Dependencies:   TextLCD mbed-rtos mbed

Fork of 541_Pacermaker by CIS541

Revision:
3:2ed03f9e0042
Parent:
2:3d47bb081502
--- a/main.h	Wed Dec 02 01:30:36 2015 +0000
+++ b/main.h	Wed Dec 02 02:27:30 2015 +0000
@@ -28,6 +28,7 @@
 int32_t signal2 = 0x02;
 int32_t signal3 = 0x03;
 int32_t signal4 = 0x04;
+int32_t signal5 = 0x05;
 
 bool waitASignal;
 bool waitVSignal;
@@ -37,26 +38,21 @@
 bool modeChanged = false;
 bool canPaceV = true;
 bool paceVPending = false;
-bool ringAlarm = true;
 bool ringingAlarm = false;
 bool timerRunning = false;
 bool aSenseOccurred = true;
 bool digitTwoReceived = false;
 
 int heartRate = 0;
+int avgHeartRate = 0;
 int observationInterval = 10000;
 int pacemakerInterval = 10;
-int waitCount = 0;
-int avgHeartRate = 0;
 int rateCoefficient = 6;
-int heartRateHeart = 0;
-int sec = 0;
-int avgHeartRateHeart = 0;
 int paceMakerMode = NORMAL;
 int uriTimeOutStatus = URI_const;
-char ch;
+int timeConstraint;
 
-int timeConstraint;
+char ch;
 
 const int normalModeLRI= 1500;
 const int normalModeAVI = 65;
@@ -91,11 +87,13 @@
 Mutex expectVMutex;
 Mutex timeConstraintMutex;
 Mutex heartRateMutex;
+Mutex observationMutex;
 
 Thread *P_PacemakerKeyboard;
 Thread *P_PacemakerSend;
 Thread *P_PacemakerModeSwitch;
 Thread *P_PacemakerReceive;
+Thread *P_PacemakerAlarm;
 
 Timer displayTimer;
 RtosTimer *TimeOutTimer;