while(1)
{
Configuration();
if(count>39000)
{
writec("cmd.dat",USART_RX_BUF22,0,39050); //写入SD卡SRAM的数据
}
else
{
GPIO_SetBits(GPIOB, GPIO_Pin_12); //给GPS供电打开
Delay1(1500);
GPSdataformat(); //用串口收到GPS数据,并且写入 SRAM
}
RTC_IntoStandbyMode( 981000) ; //60S 后RTC报警唤醒
PWR_EnterSTOPMode(PWR_Regulator_LowPower,PWR_STOPEntry_WFE) ; //系统进入STOP模式
}
|