PROJ515-MASTER-No-PWM

Dependencies:   mbed mbed-rtos ShiftReg2 TextLCD

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?

UserRevisionLine numberNew contents of line
thomasmorris 4:020f93d35f6e 1 #include "Setup.hpp"
mwthewsey 2:4c18a6d89f19 2
thomasmorris 4:020f93d35f6e 3 void Control_Power_Function(){Control_Main();}
thomasmorris 4:020f93d35f6e 4 void Serial_PC_Thread_Function(){SERIAL_PC_1.Main();}
thomasmorris 4:020f93d35f6e 5 void Serial_Board_Thread_Function(){SERIAL_BOARD_1.Main();}
mwthewsey 2:4c18a6d89f19 6 int main()
mwthewsey 3:5665939d31ca 7 {
thomasmorris 4:020f93d35f6e 8 //Thread starting
thomasmorris 4:020f93d35f6e 9 Control_Post();//Power on self test
thomasmorris 4:020f93d35f6e 10 Thread::wait(1000);
thomasmorris 4:020f93d35f6e 11 Control_power_Thread.start(Control_Power_Function);
thomasmorris 4:020f93d35f6e 12 Serial_PC_Thread.start(Serial_PC_Thread_Function);
thomasmorris 4:020f93d35f6e 13 Serial_Board_Thread.start(Serial_Board_Thread_Function);
thomasmorris 4:020f93d35f6e 14
mwthewsey 3:5665939d31ca 15 while(1)
mwthewsey 3:5665939d31ca 16 {
thomasmorris 4:020f93d35f6e 17 Thread::signal_wait(1);//Sleep the main thread
mwthewsey 0:c63c0359492d 18 }
mwthewsey 0:c63c0359492d 19 }