diajzifsajoifajsoifaj

Dependencies:   BMP280 LGLCD

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

components.hpp

Committer:
liam_grazier
Date:
2018-01-07
Revision:
7:dd303488e55d
Parent:
5:9b4844128e09

File content as of revision 7:dd303488e55d:

#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