Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

SETUP.hpp

Committer:
thomasmorris
Date:
2018-01-09
Revision:
48:244d6d81bb52
Parent:
47:6d128e500875
Child:
52:99915f5240b2

File content as of revision 48:244d6d81bb52:

#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



//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