![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
things are working
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_DEC_2016_jan by
Diff: main.cpp
- Revision:
- 3:23cdab96a05d
- Parent:
- 1:ad3b8a8032e2
- Child:
- 4:560716ec8414
--- a/main.cpp Fri Jan 22 18:07:48 2016 +0000 +++ b/main.cpp Sat Jan 23 09:26:14 2016 +0000 @@ -54,33 +54,22 @@ void T_CDMS_RLY_TMTC(void const *args) { - - - printf("\rin T_CDMS_RLY_TMTC\r\n"); - printf("\r \n Enter a valid TC \n\r"); - uint8_t read; - /* for(int i=0;i <4 ; i++) - { - scanf("%d",&tc_test->TC_string[i]); - }*/ - tc_test->TC_string[0] = 43; - tc_test->TC_string[1] = 0x40; - tc_test->TC_string[2] = 0x81; - tc_test->TC_string[3] = 0x13; - + printf("\rrunning T_CDMS_RLY_TMTC\r\n"); + tc_test->TC_string[0] = 43; + tc_test->TC_string[1] = 0x40; + tc_test->TC_string[2] = 0x81; + tc_test->TC_string[3] = 0x13; for(int i=4;i < 135 ; i++) tc_test->TC_string[i] = 43; - printf("%s", tc_test->TC_string); + printf("tc - %s", tc_test->TC_string); tm_test = FCTN_CDMS_RLY_TMTC(tc_test); printf("%s", tm_test->TM_string); -// for(int i =0;i<134;i++)\ +// for(int i =0;i<134;i++) // { // printf("ack"); // printf("%c", tm_test->TM_string[i]); // } - //FUNC_CDMS_RLY_TM(); - } void T_PL_RCV_SC_DATA(void const *args) @@ -106,18 +95,6 @@ ptr_t_sc_data->signal_set(0x1); } -/*uint8_t* FCTN_PL_RCV_SC_DATA() -{ - printf("\n\rFCTN_PL_RCV_SC_DATA Function Executed\r\n"); - uint8_t buff[512]; - for(int i=0;i<512;i++) - { - buff[i]=0x32; - } - return buff; - -} */ - void FCTN_COM_COMP_SC_DATA() { printf("\n\rFCTN_COM_COMP_SC_DATA Function Executed\r\n"); @@ -127,7 +104,7 @@ void ISR_TMTC_THREAD() { - ptr_t_tmtc->signal_set(0x3); + ptr_t_tmtc->signal_set(0x5); } @@ -138,10 +115,10 @@ FCTN_CDMS_INIT_RTC(); RtosTimer TIMER_HK_ACQ(T_CDMS_RLY_TMTC,osTimerPeriodic); TIMER_HK_ACQ.start(20000); - ptr_t_tmtc = new Thread (T_CDMS_RLY_TMTC); + //ptr_t_tmtc = new Thread (T_CDMS_RLY_TMTC); ptr_t_sc_data = new Thread (T_PL_RCV_SC_DATA); pl_sc_data.rise(&ISR_PL_RCV_SC_DATA); - cdms_rcv_tc.rise(&ISR_TMTC_THREAD); + while(1) { Thread::wait(10);