PROJ515-MASTER-No-PWM
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
Control/Control.hpp@5:dbb984e01ded, 2019-05-08 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed May 08 09:39:42 2019 +0000
- Revision:
- 5:dbb984e01ded
- Parent:
- 4:020f93d35f6e
Working code not PWM;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 4:020f93d35f6e | 1 | #ifndef _CONTROL_HPP_ |
thomasmorris | 4:020f93d35f6e | 2 | #define _CONTROL_HPP_ |
thomasmorris | 4:020f93d35f6e | 3 | |
thomasmorris | 4:020f93d35f6e | 4 | #include "mbed.h" |
thomasmorris | 4:020f93d35f6e | 5 | #include "rtos.h" |
thomasmorris | 4:020f93d35f6e | 6 | |
thomasmorris | 4:020f93d35f6e | 7 | |
thomasmorris | 4:020f93d35f6e | 8 | #include "Post.hpp" |
thomasmorris | 4:020f93d35f6e | 9 | #include "Interface.hpp" |
thomasmorris | 4:020f93d35f6e | 10 | #include "Post.hpp" |
thomasmorris | 4:020f93d35f6e | 11 | #include "Schedules.hpp" |
thomasmorris | 4:020f93d35f6e | 12 | #include "Feedback.hpp" |
thomasmorris | 4:020f93d35f6e | 13 | #include "Serial_PC.hpp" |
thomasmorris | 4:020f93d35f6e | 14 | #include "Serial_Board.hpp" |
thomasmorris | 4:020f93d35f6e | 15 | #include "ShiftReg.h" |
thomasmorris | 4:020f93d35f6e | 16 | |
thomasmorris | 4:020f93d35f6e | 17 | extern ShiftReg SR; //data, store, clock, output enable |
thomasmorris | 4:020f93d35f6e | 18 | extern DigitalOut myled; //Onboard LED |
thomasmorris | 4:020f93d35f6e | 19 | |
thomasmorris | 4:020f93d35f6e | 20 | //Class instances |
thomasmorris | 4:020f93d35f6e | 21 | extern INTERFACE INTERFACE_1; |
thomasmorris | 4:020f93d35f6e | 22 | extern SCHEDULES SCHEDULES_1; |
thomasmorris | 4:020f93d35f6e | 23 | extern FEEDBACK FEEDBACK_1; |
thomasmorris | 4:020f93d35f6e | 24 | extern SERIAL_PC SERIAL_PC_1; |
thomasmorris | 4:020f93d35f6e | 25 | extern SERIAL_BOARD SERIAL_BOARD_1; |
thomasmorris | 4:020f93d35f6e | 26 | |
thomasmorris | 4:020f93d35f6e | 27 | |
thomasmorris | 4:020f93d35f6e | 28 | void Control_Main(); |
thomasmorris | 4:020f93d35f6e | 29 | void Control_Shift_Regs(uint16_t Selection, int PWM); |
thomasmorris | 4:020f93d35f6e | 30 | void Control_Post(); |
thomasmorris | 4:020f93d35f6e | 31 | void Control_Sensing(); |
thomasmorris | 4:020f93d35f6e | 32 | #endif //_CONTROL_HPP_ |