Plymouth ELEC351 Group T / Mbed OS ELEC351

Dependencies:   BME280 BMP280 TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sample_hardware.hpp Source File

sample_hardware.hpp

00001 #ifndef __sample_hardware__
00002 #define __sample_hardware__
00003 //#define BME
00004 #ifdef BME
00005 #include "BME280.h"
00006 #else
00007 #include "BMP280.h"
00008 #endif
00009 #include "SDBlockDevice.h"
00010 #include "FATFileSystem.h"
00011 #include "LCD_COMMAND.hpp"
00012 #include "LCD.hpp"
00013 #include "NETWORK.hpp"
00014 #include "SERIAL_COMMANDS.hpp"
00015 #include "SD_CARD.hpp"
00016 
00017 enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,SD_CARD_REMOVED,FATAL};//Error Codes
00018 
00019 extern DigitalOut onBoardLED;
00020 
00021 extern DigitalIn  onBoardSwitch;
00022 extern InterruptIn  SW1;
00023 extern InterruptIn  SW2;
00024 //extern Serial pc;
00025 extern AnalogIn adcIn;
00026 
00027 #ifdef BME
00028 extern BME280 sensor;
00029 #else
00030 extern BMP280 sensor;
00031 #endif
00032 extern SDBlockDevice sd;
00033 
00034 extern void post();
00035 extern void errorCode(ELEC350_ERROR_CODE err);
00036 
00037 #endif