green rosh
/
BAE_FRDMTESIN2
i2c working
Fork of BAE_FRDMTESIN2 by
Diff: main.cpp
- Revision:
- 4:8f6c24eca109
- Parent:
- 3:02b45de29c0f
- Child:
- 5:255b43e8e21a
diff -r 02b45de29c0f -r 8f6c24eca109 main.cpp --- a/main.cpp Wed Dec 03 06:25:50 2014 +0000 +++ b/main.cpp Wed Dec 03 11:23:37 2014 +0000 @@ -11,7 +11,8 @@ Timer t; //To know the time of entering each thread -Timer t1; //To know the time of execution of each thread +Timer t1; + //To know the time of execution of each thread Thread *ptr_t_hk_acq; Thread *ptr_t_acs; @@ -190,18 +191,21 @@ } }*/ void T_FAULT(void const *args) -{ +{ + char flag2='1'; while(1) { Thread :: signal_wait(0x2); FAULTS(); - + POWER(flag2); + flag2++; //testing ... should be removed } } //------------------------------------------------------------------------------------------------------------------------------------------------ //SCHEDULER //------------------------------------------------------------------------------------------------------------------------------------------------ +int beacon_sc = 3; uint16_t schedcount=1; void t_sc(void const *args) { @@ -222,7 +226,7 @@ ptr_t_hk_acq -> signal_set(0x2); } - if(schedcount%3==0) + if(schedcount%beacon_sc==0) { if(beac_flag==0) {