stc_rtc_initstruct_t RtcInitStruct;
Sysctrl_SetPeripheralGate(SysctrlPeripheralRtc,TRUE); //RTC模块时钟打开
RtcInitStruct.rtcAmpm = RtcPm; //24小时制
RtcInitStruct.rtcClksrc = RtcClkXtl; //外部低速时钟
RtcInitStruct.rtcPrdsel.rtcPrdsel = RtcPrds; //周期中断类型PRDS
RtcInitStruct.rtcPrdsel.rtcPrds = 3; //周期中断时间间隔 1分钟
是通过设置为PRDS 为1分钟间隔,然后唤醒后计数,没到10分钟继续休眠吗?
|