#i nclude <GLOBAL.h>
#i nclude <stdlib.h>
#i nclude <stdbool.h>
#i nclude <msp430x41x.h>
void BasicTimerEn(void)
{
if(BasicTimer==0)
{
CardParseOverFg=1;
LPM4;
_NOP();
SCFQCTL=SCFQ_2M;//---------------------时钟为1M
FLL_CTL0 |= XCAP10PF;
WDTCTL=WDTPW+WDTHOLD;
InitRTC();
}
else
{
if(SecondsConn&0x80)
{
if(BasicTimer!=0)
{
BasicTimer--;
}
SecondsConn&=0x7f;
}
if(SleepEn)
{
LPM3;
_NOP();
}
}
} |