Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
sample_hardware.hpp@48:244d6d81bb52, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 00:37:01 2018 +0000
- Revision:
- 48:244d6d81bb52
- Parent:
- 41:859b5e1e3d9a
- Child:
- 49:d51f96a46cc3
HOLY SHIT IT WORKS
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 37:7c4d7f206039 | 1 | #ifndef __sample_hardware__ |
thomasmorris | 37:7c4d7f206039 | 2 | #define __sample_hardware__ |
thomasmorris | 37:7c4d7f206039 | 3 | //#define BME |
thomasmorris | 37:7c4d7f206039 | 4 | #ifdef BME |
thomasmorris | 37:7c4d7f206039 | 5 | #include "BME280.h" |
thomasmorris | 37:7c4d7f206039 | 6 | #else |
thomasmorris | 37:7c4d7f206039 | 7 | #include "BMP280.h" |
thomasmorris | 37:7c4d7f206039 | 8 | #endif |
thomasmorris | 37:7c4d7f206039 | 9 | #include "SDBlockDevice.h" |
thomasmorris | 37:7c4d7f206039 | 10 | #include "FATFileSystem.h" |
thomasmorris | 48:244d6d81bb52 | 11 | #include "LCD_COMMAND.hpp" |
thomasmorris | 37:7c4d7f206039 | 12 | #include "LCD.hpp" |
thomasmorris | 48:244d6d81bb52 | 13 | #include "NETWORK.hpp" |
thomasmorris | 48:244d6d81bb52 | 14 | #include "SERIAL_COMMANDS.hpp" |
thomasmorris | 37:7c4d7f206039 | 15 | |
thomasmorris | 41:859b5e1e3d9a | 16 | enum ELEC350_ERROR_CODE {OK, NETWORK_FATAL,FATAL};//Error Codes |
thomasmorris | 37:7c4d7f206039 | 17 | |
thomasmorris | 37:7c4d7f206039 | 18 | extern DigitalOut onBoardLED; |
thomasmorris | 37:7c4d7f206039 | 19 | |
thomasmorris | 37:7c4d7f206039 | 20 | extern DigitalIn onBoardSwitch; |
thomasmorris | 37:7c4d7f206039 | 21 | extern InterruptIn SW1; |
thomasmorris | 37:7c4d7f206039 | 22 | extern InterruptIn SW2; |
thomasmorris | 37:7c4d7f206039 | 23 | //extern Serial pc; |
thomasmorris | 37:7c4d7f206039 | 24 | extern AnalogIn adcIn; |
thomasmorris | 37:7c4d7f206039 | 25 | |
thomasmorris | 37:7c4d7f206039 | 26 | #ifdef BME |
thomasmorris | 37:7c4d7f206039 | 27 | extern BME280 sensor; |
thomasmorris | 37:7c4d7f206039 | 28 | #else |
thomasmorris | 37:7c4d7f206039 | 29 | extern BMP280 sensor; |
thomasmorris | 37:7c4d7f206039 | 30 | #endif |
thomasmorris | 37:7c4d7f206039 | 31 | extern SDBlockDevice sd; |
thomasmorris | 37:7c4d7f206039 | 32 | |
thomasmorris | 37:7c4d7f206039 | 33 | extern void post(); |
thomasmorris | 37:7c4d7f206039 | 34 | extern void errorCode(ELEC350_ERROR_CODE err); |
thomasmorris | 37:7c4d7f206039 | 35 | |
thomasmorris | 37:7c4d7f206039 | 36 | #endif |