werwere

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

Files at this revision

API Documentation at this revision

Comitter:
shreeshas95
Date:
Fri Jan 29 17:50:20 2016 +0000
Parent:
103:b55559925dc1
Child:
105:5ce0337e7c15
Commit message:
Added cdms hk thread : ready for testing

Changed in this revision

CDMS_HK.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/CDMS_HK.h	Fri Jan 29 17:36:10 2016 +0000
+++ b/CDMS_HK.h	Fri Jan 29 17:50:20 2016 +0000
@@ -18,7 +18,7 @@
 DigitalOut SelectLinec1 (PIN77);
 DigitalOut SelectLinec0 (PIN76); // LSB of Select Lines
 
-void FCTN_CDMS_HK_MAIN()
+void FCTN_CDMS_HK_MAIN(void const *args)
 {
 //    CDMS_HK_STATUS=(CDMS_HK_STATUS)|(HK_MAIN_STATUS);
     FCTN_CDMS_HK;
--- a/main.cpp	Fri Jan 29 17:36:10 2016 +0000
+++ b/main.cpp	Fri Jan 29 17:50:20 2016 +0000
@@ -82,12 +82,15 @@
     #if DEBUG
     gPC.puts("competed allocating threads\r\n");
     #endif
+    
     // *******************INITIALISATIONS END********************
     
+    RtosTimer gCDMS_HK_TIMER(FCTN_CDMS_HK_MAIN, osTimerPeriodic);
+    gCDMS_HK_TIMER.start(30000);
+    
     /*starting the thread with signal*/
     set_sig();
     
-    
     /*Calculating Stack used*/
     
     int state;