Fix all the following issues which we faced during 01st April internal demo 1) Display hang and jump issue 2) Sequencing issue 3) Issue with BP code

Dependencies:   SDFileSystem ds3231 program mbed testUniGraphic_150217

Fork of Int_Demo_01Apr2017_newdisplaycode_bp_nikita by nikita teggi

Revision:
3:9a06c2bed650
Parent:
1:8316c23ec6b9
--- a/ecg_dec.h	Mon Jan 30 10:57:38 2017 +0000
+++ b/ecg_dec.h	Fri Feb 10 10:39:13 2017 +0000
@@ -3,7 +3,7 @@
 #ifndef ECG_DEC_H_
 #define ECG_DEC_H_
 
-#include "mbed.h"
+/*#include "mbed.h"
 //#include "rtos.h"
 #define PIN_MOSI        PTA16
 #define PIN_MISO        PTA17 
@@ -61,7 +61,28 @@
 #define N_ERR 100
 #define N_TEST 500
 #define N_ECG 2000
+SPI mySpi(PIN_MOSI, PIN_MISO, PIN_SCLK) ;
+//PIN DECLARATIONS
+Serial pc(USBTX,USBRX);
+DigitalIn DRDY_BAR(PTC8);
+DigitalIn INTR(PTC7); 
+DigitalOut CHIPSEL_BAR(PTD0);
+DigitalOut ADS_START(PTC16);
+DigitalOut RESET_BAR(PTC17);
 
+DigitalOut myled(LED1);
+
+PwmOut led(PTB18);
+//SPI SETTINGS
+#define baud_rate 115200
+#define freq 1000000
+#define bits 8 
+#define mode 1 
+#define loop 1000000 
+
+//PPG DECLARATION
+#define MAX_BRIGHTNESS 255 // BP ADD
 int ecg(int pid);
-
+*/
+int ecg(int pid);
 #endif
\ No newline at end of file