#include <GLOBAL.h> #include <stdlib.h> #include <stdbool.h> #include <msp430x41x.h> void InitRTC(void) { BTCTL=BTDIV+BTIP2+BTIP1; IE2|=BTIE; } void InitData(void) { LcdRunData=0; CardClerEn=0; DisturbTime=10; BasicTimer=75; CardParseEn=0; SecondsConn=0; VindicateConnTimes=60; DataPick(); DataComper(); CardParseOverFg=1; } void InitSys(void) { SCFQCTL=SCFQ_2M;//---------------------时钟为2M FLL_CTL0 |= XCAP10PF; WDTCTL=WDTPW+WDTHOLD; CardInit(); InitLcd(); InitRTC();//--------------------------------------------------------->时钟初始化 OpenLcd(); MotoInit(); InitWdt(); PulseInit(); InitData(); }