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.
Fork of fault_man by
Diff: main.cpp
- Revision:
- 3:417a2fd0f03b
- Parent:
- 2:12445d744dfd
--- a/main.cpp Tue Dec 02 09:41:28 2014 +0000 +++ b/main.cpp Wed Dec 03 10:36:36 2014 +0000 @@ -49,6 +49,8 @@ // bool fault7 = 0; // bool fault8 = 0; + int clearout; + BusOut clear(FAULT_CLEAR1,FAULT_CLEAR2,FAULT_CLEAR3,FAULT_CLEAR4,FAULT_CLEAR5,FAULT_CLEAR6,FAULT_CLEAR7,FAULT_CLEAR8); void FAULTS(void const *args) { @@ -73,7 +75,8 @@ { clear7 = !fault7; } //if(fault8 == 0) { clear8 = !fault8; } - + clearout=clear; + printf("%d ",clearout); } } @@ -83,13 +86,12 @@ { printf("\nsup\n"); Thread f1(FAULTS); - int clearout; + while(1) { //Thread :: wait(5000); f1.signal_set(0x1); - clearout=clear; - printf("%d ",clearout); + } } \ No newline at end of file