A classy affair
Dependencies: mbed mbed-rtos ShiftReg TextLCD
Setup.hpp@3:3700f0c29710, 2019-04-10 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed Apr 10 11:33:32 2019 +0000
- Revision:
- 3:3700f0c29710
- Child:
- 4:1ef122d47bf3
A classy afair
Who changed what in which revision?
User | Revision | Line number | New 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 | 3:3700f0c29710 | 14 | //Digital Outputs |
thomasmorris | 3:3700f0c29710 | 15 | extern DigitalOut myled; //Onboard LED |
thomasmorris | 3:3700f0c29710 | 16 | |
thomasmorris | 3:3700f0c29710 | 17 | |
thomasmorris | 3:3700f0c29710 | 18 | //Class instances |
thomasmorris | 3:3700f0c29710 | 19 | extern POWER POWER_1; |
thomasmorris | 3:3700f0c29710 | 20 | extern INTERFACE INTERFACE_1; |
thomasmorris | 3:3700f0c29710 | 21 | //ShiftReg SR1(PA_12, PA_11, PA_10); //data, store, clock |
thomasmorris | 3:3700f0c29710 | 22 | |
thomasmorris | 3:3700f0c29710 | 23 | static Thread Serial_Thread; |
thomasmorris | 3:3700f0c29710 | 24 | |
thomasmorris | 3:3700f0c29710 | 25 | #endif //_SETUP_HPP_ |