Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
SETUP.hpp
- Committer:
- thomasmorris
- Date:
- 2018-01-08
- Revision:
- 47:6d128e500875
- Parent:
- 45:875f7e18a386
- Child:
- 48:244d6d81bb52
File content as of revision 47:6d128e500875:
#ifndef _SETUP_HPP_ //SETUP header guard #define _SETUP_HPP_ //File includes #include "rtos.h" #include "LED.hpp" #include "DATA.hpp" #include "LCD.hpp" #include "SERIAL.hpp" #include "TIME.hpp" #include <iostream> //Signal definitions //Mutex Locks //Time definitions #define TimerInterval 15 //This is in seconds #define NetworkWait 5000 //Forward Declarations of functions void Serial_Comms(); void Sample_signal_set(); void Console_Output_ISR(); void Serial_Comms_Data_Get(); void Sampling_ISR(); void Console_Output_ISR(); //Declarations of Varialbes float Sample_Rate; int LCD_sprintf; double temp = 0; double pressure = 0; double lux = 0; string buffer_time = 0; char buffer[32]; char scom_time_buffer[32]; char msel_time_buffer[32]; //Time out Declarations Timeout sw1TimeOut;//Used to prevent switch bounce Timeout sw2TimeOut;//Used to prevent switch bounce using namespace std;//Set default namespace enables use of iostream with serial comms #endif