![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
PROJ515-MASTER-No-PWM
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
main.cpp
- Committer:
- thomasmorris
- Date:
- 2019-05-07
- Revision:
- 4:020f93d35f6e
- Parent:
- 3:5665939d31ca
File content as of revision 4:020f93d35f6e:
#include "Setup.hpp" void Control_Power_Function(){Control_Main();} void Serial_PC_Thread_Function(){SERIAL_PC_1.Main();} void Serial_Board_Thread_Function(){SERIAL_BOARD_1.Main();} int main() { //Thread starting Control_Post();//Power on self test Thread::wait(1000); Control_power_Thread.start(Control_Power_Function); Serial_PC_Thread.start(Serial_PC_Thread_Function); Serial_Board_Thread.start(Serial_Board_Thread_Function); while(1) { Thread::signal_wait(1);//Sleep the main thread } }