A classy affair

Dependencies:   mbed mbed-rtos ShiftReg TextLCD

Committer:
thomasmorris
Date:
Thu Apr 11 11:51:16 2019 +0000
Revision:
5:20decc99e50c
Parent:
4:1ef122d47bf3
Updated Post function

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 3:3700f0c29710 1 #ifndef _SETUP_HPP_
thomasmorris 3:3700f0c29710 2 #define _SETUP_HPP_
thomasmorris 3:3700f0c29710 3 //Libraries
thomasmorris 3:3700f0c29710 4 #include "mbed.h"
thomasmorris 3:3700f0c29710 5 #include "rtos.h" //Real Time Operating System. https://os.mbed.com/handbook/RTOS
thomasmorris 3:3700f0c29710 6 #include "ShiftReg.h"
thomasmorris 3:3700f0c29710 7
thomasmorris 3:3700f0c29710 8
thomasmorris 3:3700f0c29710 9 //Header Files
thomasmorris 3:3700f0c29710 10 #include "Post.hpp"
thomasmorris 3:3700f0c29710 11 #include "Interface.hpp"
thomasmorris 3:3700f0c29710 12 #include "Power.hpp"
thomasmorris 3:3700f0c29710 13 #include "Post.hpp"
thomasmorris 4:1ef122d47bf3 14 #include "Schedules.hpp"
thomasmorris 4:1ef122d47bf3 15 #include "Feedback.hpp"
thomasmorris 3:3700f0c29710 16 //Digital Outputs
thomasmorris 3:3700f0c29710 17 extern DigitalOut myled; //Onboard LED
thomasmorris 3:3700f0c29710 18
thomasmorris 3:3700f0c29710 19
thomasmorris 3:3700f0c29710 20 //Class instances
thomasmorris 3:3700f0c29710 21 extern POWER POWER_1;
thomasmorris 3:3700f0c29710 22 extern INTERFACE INTERFACE_1;
thomasmorris 5:20decc99e50c 23 extern SCHEDULES SCHEDULES_1;
thomasmorris 3:3700f0c29710 24 //ShiftReg SR1(PA_12, PA_11, PA_10); //data, store, clock
thomasmorris 3:3700f0c29710 25
thomasmorris 3:3700f0c29710 26 static Thread Serial_Thread;
thomasmorris 4:1ef122d47bf3 27 static Thread LCD_Thread;
thomasmorris 4:1ef122d47bf3 28 static Thread LED_Thread;
thomasmorris 4:1ef122d47bf3 29 static Thread Schedules_Thread;
thomasmorris 3:3700f0c29710 30 #endif //_SETUP_HPP_