#i nclude <GLOBAL.h>
#i nclude <stdlib.h>
#i nclude <stdbool.h>
#i nclude <msp430x41x.h>
extern void BasicTimerEn(void);
//----- *** --- 主程序 --- *** -----//
int main(void)
{
_DINT();
LongDelay(20);
InitSys();
SleepEn=1;
_EINT();
for(;;)
{
WDT();
PulseAdd();//--------------------SecondsConn-->0x01;
BeepConn();//--------------------SecondsConn-->0x02;
LcdParse();//--------------------SecondsConn-->0x04;
ValveCon();//--------------------SecondsConn-->0x08;
CardPars();//--------------------SecondsConn-->0x10;
PowerOnChk();//------------------SecondsConn-->0x20;
DisturbConn();//-----------------SecondsConn-->0x40;
BasicTimerEn();//----------------SecondsConn-->0x80
}
}
#pragma vector=BASICTIMER_VECTOR
__interrupt void basic_timer(void)
{
SecondsConn=0xff;
LPM3_EXIT;
} |