Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
SAMPLE.hpp@47:6d128e500875, 2018-01-08 (annotated)
- Committer:
- thomasmorris
- Date:
- Mon Jan 08 21:53:40 2018 +0000
- Revision:
- 47:6d128e500875
- Child:
- 48:244d6d81bb52
FINAL working copy
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 47:6d128e500875 | 1 | #ifndef SAMPLE_HPP |
thomasmorris | 47:6d128e500875 | 2 | #define SAMPLE_HPP |
thomasmorris | 47:6d128e500875 | 3 | |
thomasmorris | 47:6d128e500875 | 4 | #include "TIME.hpp" |
thomasmorris | 47:6d128e500875 | 5 | #include "THREADS.hpp" |
thomasmorris | 47:6d128e500875 | 6 | #include "DATA.hpp" |
thomasmorris | 47:6d128e500875 | 7 | #include "SERIAL.hpp" |
thomasmorris | 47:6d128e500875 | 8 | #include "LED.hpp" |
thomasmorris | 47:6d128e500875 | 9 | #include "sample_hardware.hpp" |
thomasmorris | 47:6d128e500875 | 10 | |
thomasmorris | 47:6d128e500875 | 11 | //Signal Definitions |
thomasmorris | 47:6d128e500875 | 12 | #define SamplingTime 1 |
thomasmorris | 47:6d128e500875 | 13 | #define SerialCommsTime 1 |
thomasmorris | 47:6d128e500875 | 14 | #define NotSerialCommsTime 0 |
thomasmorris | 47:6d128e500875 | 15 | #define NotSamplingTime 0 |
thomasmorris | 47:6d128e500875 | 16 | #define Print_Time_to_LCD 1 |
thomasmorris | 47:6d128e500875 | 17 | #define Dont_Print_Time_to_LCD 0 |
thomasmorris | 47:6d128e500875 | 18 | #define EDGE_RISEN 1 |
thomasmorris | 47:6d128e500875 | 19 | #define EDGE_FALLEN 0 |
thomasmorris | 47:6d128e500875 | 20 | #define SD_Data_Ready 1 |
thomasmorris | 47:6d128e500875 | 21 | #define No_SD_Data_Ready 0 |
thomasmorris | 47:6d128e500875 | 22 | #define Do_Read_Data 1 |
thomasmorris | 47:6d128e500875 | 23 | #define Dont_Read_Data 0 |
thomasmorris | 47:6d128e500875 | 24 | #define Do_Delete_Data 1 |
thomasmorris | 47:6d128e500875 | 25 | #define Dont_Delete_Data 0 |
thomasmorris | 47:6d128e500875 | 26 | |
thomasmorris | 47:6d128e500875 | 27 | extern void Sampling_ISR(); |
thomasmorris | 47:6d128e500875 | 28 | extern void Sample_Event(); |
thomasmorris | 47:6d128e500875 | 29 | |
thomasmorris | 47:6d128e500875 | 30 | //LED object constructors |
thomasmorris | 47:6d128e500875 | 31 | static LED Red_led(PE_15); |
thomasmorris | 47:6d128e500875 | 32 | static LED Yellow_led(PB_10); |
thomasmorris | 47:6d128e500875 | 33 | static LED Green_led(PB_11); |
thomasmorris | 47:6d128e500875 | 34 | |
thomasmorris | 47:6d128e500875 | 35 | |
thomasmorris | 47:6d128e500875 | 36 | |
thomasmorris | 47:6d128e500875 | 37 | #endif |