|
@@ -1915,6 +1915,9 @@ void posGGAReset(void)
|
|
|
GPIO_PinConfig(1, FEM_GPS_RSTN, &config);
|
|
|
GPIO_PinWrite(1, 1 << FEM_GPS_RSTN, 1 << FEM_GPS_RSTN);
|
|
|
|
|
|
+ config.pinDirection = GPIO_DirectionInput;
|
|
|
+ config.misc.initOutput = 0;
|
|
|
+ GPIO_PinConfig(1, FEM_GPS_RSTN, &config);
|
|
|
}
|
|
|
/**
|
|
|
\fn void GPSPowerCtr(bool )
|
|
@@ -2024,7 +2027,7 @@ static void GpsProcess(void* arg)
|
|
|
osMessageQueueGet(gpsMsgHandle, &msg, 0, osWaitForever);
|
|
|
if (msg.dataPtr)
|
|
|
{
|
|
|
- void *msgtemp = msg.dataPtr;//取指针
|
|
|
+ //void *msgtemp = msg.dataPtr;//取指针
|
|
|
#ifdef USING_PRINTF
|
|
|
//printf("\nGpsProcess msgptr data:%s\r\n",msg.dataPtr);
|
|
|
#endif
|
|
@@ -2088,8 +2091,8 @@ static void GpsProcess(void* arg)
|
|
|
osMessageQueuePut(gpsMsgQueue, &Gps_buffer, 0, 1000);
|
|
|
}
|
|
|
}
|
|
|
- free(msgtemp);
|
|
|
- msgtemp=NULL;
|
|
|
+ //free(msgtemp);
|
|
|
+ //msgtemp=NULL;
|
|
|
}
|
|
|
msg.dataPtr=NULL;
|
|
|
|