Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
Diff: ecg_dec.h
- Revision:
- 3:9a06c2bed650
- Parent:
- 1:8316c23ec6b9
- Child:
- 13:5d3b478ea9c7
diff -r 3b7b71bfc941 -r 9a06c2bed650 ecg_dec.h --- 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