void BasicTimerEn(void) { if(BasicTimer==0) { LPM4; _NOP(); SCFQCTL=SCFQ_2M; FLL_CTL0 |= XCAP10PF; WDTCTL=WDTPW+WDTHOLD; InitRTC(); } else { if(SleepEn) { LPM3; _NOP(); } if(SecondsConn&0x80) { if(BasicTimer!=0) { BasicTimer--; } SecondsConn&=0x7f; } } }