Plymouth ELEC351 Group T / Mbed OS ELEC351

Dependencies:   BME280 BMP280 TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SETUP.hpp Source File

SETUP.hpp

00001 #ifndef _SETUP_HPP_ //SETUP header guard
00002 #define _SETUP_HPP_
00003 //File includes
00004 #include "rtos.h"
00005 #include "LED.hpp"
00006 #include "DATA.hpp"
00007 #include "LCD.hpp"
00008 #include "SERIAL.hpp"
00009 #include "TIME.hpp"
00010 #include <iostream>
00011 
00012 //Signal definitions
00013 
00014 //Mutex Locks
00015 
00016 
00017 //Time definitions
00018 #define TimerInterval 15 //This is in seconds
00019 
00020 
00021 
00022 //Forward Declarations of functions
00023 
00024 void Serial_Comms();
00025 void Sample_signal_set();
00026 void Console_Output_ISR();    
00027 void Serial_Comms_Data_Get();
00028 void Sampling_ISR();
00029 void Console_Output_ISR();
00030 //Declarations of Varialbes
00031 
00032 float Sample_Rate;
00033 int LCD_sprintf;
00034 double temp = 0;
00035 double pressure = 0;
00036 double lux = 0;
00037 string buffer_time = 0;
00038 char buffer[32];
00039 char scom_time_buffer[32];
00040 char msel_time_buffer[32];
00041 
00042 
00043 
00044 //Time out Declarations
00045 Timeout sw1TimeOut;//Used to prevent switch bounce
00046 Timeout sw2TimeOut;//Used to prevent switch bounce
00047 
00048 
00049 
00050 using namespace std;//Set default namespace enables use of iostream with serial comms
00051 #endif