Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos ShiftReg2 TextLCD
main.cpp@4:020f93d35f6e, 2019-05-07 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue May 07 21:55:57 2019 +0000
- Revision:
- 4:020f93d35f6e
- Parent:
- 3:5665939d31ca
Added mutex and safey coding needs more. Added board and serial functions that need testing. As well as a more thorough post function.
Who changed what in which revision?
| User | Revision | Line number | New 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 | } |