Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
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);