Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ELEC351_Group_T by
SETUP.hpp
00001 /* 00002 Setup file for the main 00003 */ 00004 00005 #ifndef SETUP_HPP//Header Guards Prevents Multiple includes 00006 #define SETUP_HPP 00007 00008 //Libraries and header includes 00009 #include "rtos.h" 00010 #include "LED.hpp" 00011 #include "SERIAL.hpp" 00012 #include "TIME.hpp" 00013 #include "SERIAL_COMMANDS.hpp" 00014 #include "THREADS.hpp" 00015 #include "LED_LOGGING.hpp" 00016 #include "STEPPER_MOTOR.hpp" 00017 #include "SPI.hpp" 00018 #include "ALGORITHM.hpp" 00019 #include <iostream> 00020 #include <bitset> 00021 00022 using namespace std; 00023 //Time definitions 00024 00025 00026 LED Red_led(PE_15); 00027 LED Green_led(PB_11); 00028 00029 //Forward Declarations of functions 00030 00031 void Serial_Comms(); 00032 void Console_Output_ISR(); 00033 void Serial_Comms_Data_Get(); 00034 void Console_Output_ISR(); 00035 void Rotate_Steps(); 00036 00037 00038 //Sets up the sides of the cube 00039 static SIDE SIDE1(); 00040 static SIDE SIDE2(); 00041 static SIDE SIDE3(); 00042 static SIDE SIDE4(); 00043 static SIDE SIDE5(); 00044 static SIDE SIDE6(); 00045 00046 00047 /* 00048 0 White 00049 1 Orange 00050 2 Blue 00051 3 Red 00052 4 Green 00053 5 Yellow 00054 These are the faces of the cube then there are the 3x3 cubelets within each face 00055 */ 00056 00057 #endif
Generated on Tue Jul 12 2022 22:52:51 by
