
aaa
Fork of 0NicksCoursework-lg by
Diff: components.hpp
- Revision:
- 8:582ac4c5a524
- Parent:
- 7:dd303488e55d
- Child:
- 9:e27b3f34de24
--- a/components.hpp Sun Jan 07 21:29:12 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -#ifndef __sample_hardware__ -#define __sample_hardware__ -#define SIG_READY 1 -#define SIG_READY2 1 -#define SIG_REMOVE 1 -#define SIG_NET 1 -//#define BME -#ifdef BME -#include "BME280.h" -#else -#include "BMP280.h" -#endif -#include "SDBlockDevice.h" -#include "FATFileSystem.h" -void runanalysis(void); -void sdrun(void); -void sdcheck(void); -void sdwrite(void); -void sdremove(void); -enum ELEC350_ERROR_CODE {OK, FATAL}; -extern DigitalOut onBoardLED; -extern DigitalOut redLED; -extern DigitalOut yellowLED; -extern DigitalOut greenLED; -extern DigitalIn onBoardSwitch; -extern DigitalIn SW1; -extern DigitalIn SW2; -//extern Serial pc; -extern AnalogIn adcIn; -#ifdef BME -extern BME280 sensor; -#else -extern BMP280 sensor; -#endif -extern void post(); -extern void errorCode(ELEC350_ERROR_CODE err); -#endif \ No newline at end of file