Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Committer:
thomasmorris
Date:
Wed Aug 15 21:34:59 2018 +0000
Revision:
57:aba1296e51b1
Parent:
56:bc5345bc6650
Final Version

Who changed what in which revision?

UserRevisionLine numberNew 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 "SERIAL.hpp"
thomasmorris 30:4cde05cc7c4f 12 #include "TIME.hpp"
thomasmorris 52:99915f5240b2 13 #include "SERIAL_COMMANDS.hpp"
thomasmorris 52:99915f5240b2 14 #include "THREADS.hpp"
thomasmorris 52:99915f5240b2 15 #include "LED_LOGGING.hpp"
thomasmorris 53:71f59e195f06 16 #include "STEPPER_MOTOR.hpp"
thomasmorris 53:71f59e195f06 17 #include "SPI.hpp"
thomasmorris 56:bc5345bc6650 18 #include "ALGORITHM.hpp"
thomasmorris 53:71f59e195f06 19 #include <iostream>
thomasmorris 53:71f59e195f06 20 #include <bitset>
thomasmorris 38:8d86e0d8a816 21
thomasmorris 53:71f59e195f06 22 using namespace std;
thomasmorris 41:859b5e1e3d9a 23 //Time definitions
thomasmorris 41:859b5e1e3d9a 24
thomasmorris 41:859b5e1e3d9a 25
thomasmorris 53:71f59e195f06 26 LED Red_led(PE_15);
thomasmorris 53:71f59e195f06 27 LED Green_led(PB_11);
thomasmorris 53:71f59e195f06 28
thomasmorris 41:859b5e1e3d9a 29 //Forward Declarations of functions
thomasmorris 25:36699ed589ab 30
thomasmorris 25:36699ed589ab 31 void Serial_Comms();
chills 26:78f5e454e59f 32 void Console_Output_ISR();
thomasmorris 41:859b5e1e3d9a 33 void Serial_Comms_Data_Get();
thomasmorris 41:859b5e1e3d9a 34 void Console_Output_ISR();
thomasmorris 53:71f59e195f06 35 void Rotate_Steps();
thomasmorris 56:bc5345bc6650 36
thomasmorris 53:71f59e195f06 37
thomasmorris 53:71f59e195f06 38 //Sets up the sides of the cube
thomasmorris 53:71f59e195f06 39 static SIDE SIDE1();
thomasmorris 53:71f59e195f06 40 static SIDE SIDE2();
thomasmorris 53:71f59e195f06 41 static SIDE SIDE3();
thomasmorris 53:71f59e195f06 42 static SIDE SIDE4();
thomasmorris 53:71f59e195f06 43 static SIDE SIDE5();
thomasmorris 53:71f59e195f06 44 static SIDE SIDE6();
thomasmorris 41:859b5e1e3d9a 45
thomasmorris 55:e0e684531825 46
thomasmorris 54:a4c5949707ca 47 /*
thomasmorris 55:e0e684531825 48 0 White
thomasmorris 55:e0e684531825 49 1 Orange
thomasmorris 55:e0e684531825 50 2 Blue
thomasmorris 55:e0e684531825 51 3 Red
thomasmorris 55:e0e684531825 52 4 Green
thomasmorris 55:e0e684531825 53 5 Yellow
thomasmorris 54:a4c5949707ca 54 These are the faces of the cube then there are the 3x3 cubelets within each face
thomasmorris 54:a4c5949707ca 55 */
thomasmorris 54:a4c5949707ca 56
thomasmorris 25:36699ed589ab 57 #endif