Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning

Dependencies:   BME280 BMP280 TextLCD

Working Repository

Committer:
thomasmorris
Date:
Tue Jan 09 12:19:12 2018 +0000
Revision:
50:3d61ca637399
Parent:
48:244d6d81bb52
Dynamic Dating Working

Who changed what in which revision?

UserRevisionLine numberNew 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 48:244d6d81bb52 9 #include "LCD_COMMAND.hpp"
thomasmorris 47:6d128e500875 10 #include "sample_hardware.hpp"
thomasmorris 47:6d128e500875 11
thomasmorris 47:6d128e500875 12 //Signal Definitions
thomasmorris 47:6d128e500875 13 #define SamplingTime 1
thomasmorris 47:6d128e500875 14 #define SerialCommsTime 1
thomasmorris 47:6d128e500875 15 #define NotSerialCommsTime 0
thomasmorris 47:6d128e500875 16 #define NotSamplingTime 0
thomasmorris 47:6d128e500875 17 #define Print_Time_to_LCD 1
thomasmorris 47:6d128e500875 18 #define Dont_Print_Time_to_LCD 0
thomasmorris 47:6d128e500875 19 #define EDGE_RISEN 1
thomasmorris 47:6d128e500875 20 #define EDGE_FALLEN 0
thomasmorris 47:6d128e500875 21 #define SD_Data_Ready 1
thomasmorris 47:6d128e500875 22 #define No_SD_Data_Ready 0
thomasmorris 47:6d128e500875 23 #define Do_Read_Data 1
thomasmorris 47:6d128e500875 24 #define Dont_Read_Data 0
thomasmorris 47:6d128e500875 25 #define Do_Delete_Data 1
thomasmorris 47:6d128e500875 26 #define Dont_Delete_Data 0
thomasmorris 47:6d128e500875 27
thomasmorris 47:6d128e500875 28 extern void Sampling_ISR();
thomasmorris 47:6d128e500875 29 extern void Sample_Event();
thomasmorris 47:6d128e500875 30
thomasmorris 47:6d128e500875 31 //LED object constructors
thomasmorris 47:6d128e500875 32 static LED Red_led(PE_15);
thomasmorris 47:6d128e500875 33 static LED Yellow_led(PB_10);
thomasmorris 47:6d128e500875 34 static LED Green_led(PB_11);
thomasmorris 47:6d128e500875 35
thomasmorris 47:6d128e500875 36
thomasmorris 47:6d128e500875 37
thomasmorris 47:6d128e500875 38 #endif