Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
Diff: SETUP.hpp
- Revision:
- 38:8d86e0d8a816
- Parent:
- 37:7c4d7f206039
- Child:
- 39:5c499989d2b9
diff -r 7c4d7f206039 -r 8d86e0d8a816 SETUP.hpp --- a/SETUP.hpp Sun Jan 07 19:21:11 2018 +0000 +++ b/SETUP.hpp Sun Jan 07 21:08:34 2018 +0000 @@ -9,7 +9,8 @@ #include "LCD.hpp" #include "SERIAL.hpp" #include "TIME.hpp" -//#include "NETWORK.hpp" + + #define SerialCommsTime 1 #define NotSerialCommsTime 0 #define SamplingTime 1 @@ -20,8 +21,13 @@ #define Default_Mode_Toggle_Time 3000 #define EDGE_RISEN 1 #define EDGE_FALLEN 0 +#include <iostream> #define mailsize 5 -#include <iostream> + +DATA Data_Active; +DATA Data_Buffer[mailsize]; +int Data_Buffer_Write_Pointer; +int Write_To_Data_Buffer(DATA Data_Store, int Write_Pointer); LCD LCD(D8,D9,D4,A0,A1,A2,A3,D7,D6,D3,D1); @@ -85,8 +91,7 @@ void SW2RisingEdge(); -DATA Data_Active; -DATA Data_Buffer[mailsize]; +//DATA Data_Active; using namespace std;