PROJ515 / Mbed 2 deprecated PROJ514-MASTER

Dependencies:   mbed mbed-rtos ShiftReg2 TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Control.hpp Source File

Control.hpp

00001 #ifndef _CONTROL_HPP_
00002 #define _CONTROL_HPP_
00003 
00004 #include "mbed.h"
00005 #include "rtos.h" 
00006 
00007 
00008 #include "Post.hpp"
00009 #include "Interface.hpp"
00010 #include "Post.hpp"
00011 #include "Schedules.hpp"
00012 #include "Feedback.hpp"
00013 #include "Serial_PC.hpp"
00014 #include "Serial_Board.hpp"
00015 #include "ShiftReg.h"
00016 
00017 extern ShiftReg SR;    //data, store, clock, output enable
00018 extern DigitalOut myled;    //Onboard LED
00019 
00020 //Class instances
00021 extern INTERFACE INTERFACE_1;
00022 extern SCHEDULES SCHEDULES_1;
00023 extern FEEDBACK FEEDBACK_1;
00024 extern SERIAL_PC SERIAL_PC_1;
00025 extern SERIAL_BOARD SERIAL_BOARD_1;
00026 
00027 
00028 void Control_Main();
00029 void Control_Shift_Regs(uint16_t Selection, int PWM);
00030 void Control_Post();
00031 void Control_Sensing();
00032 #endif //_CONTROL_HPP_