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: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of COM_MNG_TMTC_SIMPLE by
Diff: main.cpp
- Revision:
- 97:717c7908c822
- Parent:
- 96:4ca92f9775e0
- Child:
- 98:fd99ddc0e0a1
--- a/main.cpp Mon Jan 25 13:10:43 2016 +0000
+++ b/main.cpp Mon Jan 25 14:20:44 2016 +0000
@@ -21,9 +21,12 @@
#include "Compression.h"
#include "ThreadsAndFunctions.h"
+InterruptIn inr(PTA13);
+
+void set_sig(){gSCIENCE_THREAD->signal_set(SCIENCE_SIGNAL);}
int main()
{
- gLEDR = 1;
+ //gLEDR = 1;
// ******************INITIALISATIONS START******************
// COM RX
@@ -70,6 +73,10 @@
gPC.puts("competed allocating threads\r\n");
// *******************INITIALISATIONS END********************
+ /*starting the thread with signal*/
+ inr.rise(&set_sig);
+
+
/*Calculating Stack used*/
int state;
@@ -85,7 +92,7 @@
while(true){
- Thread::wait(500);
+ Thread::wait(osWaitForever);
//state = gCOM_MNG_TMTC_THREAD->get_state() + '0';
gLEDG = !gLEDG;
//gPC.putc(state);
