Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
SETUP.hpp@52:99915f5240b2, 2018-01-09 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Jan 09 22:27:49 2018 +0000
- Revision:
- 52:99915f5240b2
- Parent:
- 48:244d6d81bb52
- Child:
- 53:71f59e195f06
ITS THE FINAL COMMIT MESSAGE DO DO DO DO DO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 52:99915f5240b2 | 1 | /* |
thomasmorris | 52:99915f5240b2 | 2 | Setup file for the main |
thomasmorris | 52:99915f5240b2 | 3 | */ |
thomasmorris | 52:99915f5240b2 | 4 | |
thomasmorris | 52:99915f5240b2 | 5 | #ifndef SETUP_HPP//Header Guards Prevents Multiple includes |
thomasmorris | 52:99915f5240b2 | 6 | #define SETUP_HPP |
thomasmorris | 52:99915f5240b2 | 7 | |
thomasmorris | 52:99915f5240b2 | 8 | //Libraries and header includes |
thomasmorris | 25:36699ed589ab | 9 | #include "rtos.h" |
thomasmorris | 25:36699ed589ab | 10 | #include "LED.hpp" |
thomasmorris | 25:36699ed589ab | 11 | #include "DATA.hpp" |
thomasmorris | 25:36699ed589ab | 12 | #include "LCD.hpp" |
thomasmorris | 25:36699ed589ab | 13 | #include "SERIAL.hpp" |
thomasmorris | 30:4cde05cc7c4f | 14 | #include "TIME.hpp" |
thomasmorris | 52:99915f5240b2 | 15 | #include "NETWORK.hpp" |
thomasmorris | 52:99915f5240b2 | 16 | #include "FIFO.hpp" |
thomasmorris | 52:99915f5240b2 | 17 | #include "SD_CARD.hpp" |
thomasmorris | 52:99915f5240b2 | 18 | #include "SERIAL_COMMANDS.hpp" |
thomasmorris | 52:99915f5240b2 | 19 | #include "SAMPLE.hpp" |
thomasmorris | 52:99915f5240b2 | 20 | #include "THREADS.hpp" |
thomasmorris | 52:99915f5240b2 | 21 | #include "LED_LOGGING.hpp" |
thomasmorris | 38:8d86e0d8a816 | 22 | |
thomasmorris | 41:859b5e1e3d9a | 23 | //Time definitions |
thomasmorris | 45:875f7e18a386 | 24 | #define TimerInterval 15 //This is in seconds |
thomasmorris | 52:99915f5240b2 | 25 | #define SW1_SW2_Timeout_Time 15 //This is in seconds |
thomasmorris | 41:859b5e1e3d9a | 26 | |
thomasmorris | 52:99915f5240b2 | 27 | //Time outs |
thomasmorris | 52:99915f5240b2 | 28 | Timeout SW1TimeOut; //Used to prevent lockups |
thomasmorris | 52:99915f5240b2 | 29 | Timeout SW2TimeOut; //Used to prevent lockups |
thomasmorris | 41:859b5e1e3d9a | 30 | |
thomasmorris | 41:859b5e1e3d9a | 31 | //Forward Declarations of functions |
thomasmorris | 25:36699ed589ab | 32 | |
thomasmorris | 25:36699ed589ab | 33 | void Serial_Comms(); |
chills | 26:78f5e454e59f | 34 | void Sample_signal_set(); |
chills | 26:78f5e454e59f | 35 | void Console_Output_ISR(); |
thomasmorris | 41:859b5e1e3d9a | 36 | void Serial_Comms_Data_Get(); |
thomasmorris | 41:859b5e1e3d9a | 37 | void Sampling_ISR(); |
thomasmorris | 41:859b5e1e3d9a | 38 | void Console_Output_ISR(); |
thomasmorris | 25:36699ed589ab | 39 | |
thomasmorris | 52:99915f5240b2 | 40 | void SW1TimeOutHandler(); |
thomasmorris | 52:99915f5240b2 | 41 | void SW1FallingEdge(); |
thomasmorris | 52:99915f5240b2 | 42 | void SW2TimeOutHandler(); |
thomasmorris | 52:99915f5240b2 | 43 | void SW2FallingEdge(); |
thomasmorris | 41:859b5e1e3d9a | 44 | |
thomasmorris | 25:36699ed589ab | 45 | #endif |