11th feb i2c checking chaitu's code
Dependencies: SimpleDMA eeprom mbed-rtos mbed
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: CDMS_PL.h
- Revision:
- 295:699801854b71
- Parent:
- 289:9bd62b69874c
- Child:
- 298:5d3958886809
--- a/CDMS_PL.h Fri Aug 26 16:08:38 2016 +0000 +++ b/CDMS_PL.h Sun Aug 28 13:53:42 2016 +0000 @@ -172,9 +172,9 @@ gPC.printf("\n\rAt exit"); char state[][17] = {"STATE_OFF","STATE_STANDBY","STATE_HIBERNATE","STATE_SCIENCE"}; char status[][17] = {"PL_OFF","PL_STANDBY","PL_HIBERNATE","PL_SCIENCE","PL_SUCCESS_I2C","PL_ERR_I2C","PL_INVALID_STATE","PL_DISABLED"}; - gPC.printf("\n\rPL_state:%s -> %s",state[(uint8_t)temp[0]],state[(uint8_t)temp2[0]]); - gPC.printf("\n\rPL_status:%s -> %s",status[(uint8_t)temp[1]],status[(uint8_t)temp2[1]]); - gPC.printf("\n\rPL_PREV_state:%s -> %s",state[(uint8_t)temp[2]],state[(uint8_t)temp2[2]]); + //gPC.printf("\n\rPL_state:%s -> %s",state[(uint8_t)temp[0]],state[(uint8_t)temp2[0]]); + //gPC.printf("\n\rPL_status:%s -> %s",status[(uint8_t)temp[1]],status[(uint8_t)temp2[1]]); + //gPC.printf("\n\rPL_PREV_state:%s -> %s",state[(uint8_t)temp[2]],state[(uint8_t)temp2[2]]); } void VERIFY_TM(Base_tm *tm_ptr) { @@ -328,13 +328,13 @@ //test3(1); //gPC.printf("\n\rprev_state :%d",(PL_PREV_STATE)>>4); - gPC.printf("\n\n\rtTime_RTC:"); + /*gPC.printf("\n\n\rtTime_RTC:"); gPC.printf("\n\rYear :%d\t",((pl_time & 0x0C000000)>>26)+2016); gPC.printf("Month :%d\t",((pl_time & 0x03C00000)>>22)); gPC.printf("Day :%d",((pl_time & 0x003E0000)>>17)); gPC.printf("\n\rHours :%d",((pl_time & 0x0001F000)>>12)); gPC.printf("\tMin :%d",((pl_time & 0x00000FC0)>>6)); - gPC.printf("\t\tSec :%d",(pl_time & 0x0000003F)); + gPC.printf("\t\tSec :%d",(pl_time & 0x0000003F));*/ if(pl_time!=0) //RTC read successful { // run the loop until end of schedule is reached or month and day are both zeros or future block is found @@ -367,10 +367,10 @@ } if(pl_next_index==-1) { - gPC.printf("\n\rFuture block not found"); + //gPC.printf("\n\rFuture block not found"); gPC.printf("\n\rpl_next_index = %d",pl_next_index); } - gPC.printf("\n\rNew pl_state = %d",(pl_main_flag&(~STATE_SCIENCE))>>2); + //gPC.printf("\n\rNew pl_state = %d",(pl_main_flag&(~STATE_SCIENCE))>>2); } //Processing the PL schedule