diajzifsajoifajsoifaj

Dependencies:   BMP280 LGLCD

Fork of ELEC350-CWTEMPLATE-2017 by University of Plymouth - Stages 1, 2 and 3

Committer:
liam_grazier
Date:
Sun Jan 07 21:29:12 2018 +0000
Revision:
7:dd303488e55d
Parent:
5:9b4844128e09
working LCD, SD, (NON FIFO) , webpage, all threaded

Who changed what in which revision?

UserRevisionLine numberNew contents of line
liam_grazier 5:9b4844128e09 1 #ifndef __sample_hardware__
liam_grazier 5:9b4844128e09 2 #define __sample_hardware__
liam_grazier 7:dd303488e55d 3 #define SIG_READY 1
liam_grazier 7:dd303488e55d 4 #define SIG_READY2 1
liam_grazier 7:dd303488e55d 5 #define SIG_REMOVE 1
liam_grazier 7:dd303488e55d 6 #define SIG_NET 1
liam_grazier 5:9b4844128e09 7 //#define BME
liam_grazier 5:9b4844128e09 8 #ifdef BME
liam_grazier 5:9b4844128e09 9 #include "BME280.h"
liam_grazier 5:9b4844128e09 10 #else
liam_grazier 5:9b4844128e09 11 #include "BMP280.h"
liam_grazier 5:9b4844128e09 12 #endif
liam_grazier 7:dd303488e55d 13 #include "SDBlockDevice.h"
liam_grazier 7:dd303488e55d 14 #include "FATFileSystem.h"
liam_grazier 7:dd303488e55d 15 void runanalysis(void);
liam_grazier 7:dd303488e55d 16 void sdrun(void);
liam_grazier 7:dd303488e55d 17 void sdcheck(void);
liam_grazier 7:dd303488e55d 18 void sdwrite(void);
liam_grazier 7:dd303488e55d 19 void sdremove(void);
liam_grazier 5:9b4844128e09 20 enum ELEC350_ERROR_CODE {OK, FATAL};
liam_grazier 5:9b4844128e09 21 extern DigitalOut onBoardLED;
liam_grazier 5:9b4844128e09 22 extern DigitalOut redLED;
liam_grazier 5:9b4844128e09 23 extern DigitalOut yellowLED;
liam_grazier 5:9b4844128e09 24 extern DigitalOut greenLED;
liam_grazier 5:9b4844128e09 25 extern DigitalIn onBoardSwitch;
liam_grazier 5:9b4844128e09 26 extern DigitalIn SW1;
liam_grazier 5:9b4844128e09 27 extern DigitalIn SW2;
liam_grazier 5:9b4844128e09 28 //extern Serial pc;
liam_grazier 5:9b4844128e09 29 extern AnalogIn adcIn;
liam_grazier 5:9b4844128e09 30 #ifdef BME
liam_grazier 5:9b4844128e09 31 extern BME280 sensor;
liam_grazier 5:9b4844128e09 32 #else
liam_grazier 5:9b4844128e09 33 extern BMP280 sensor;
liam_grazier 5:9b4844128e09 34 #endif
liam_grazier 5:9b4844128e09 35 extern void post();
liam_grazier 5:9b4844128e09 36 extern void errorCode(ELEC350_ERROR_CODE err);
liam_grazier 5:9b4844128e09 37 #endif