Parcourir la source

GPS问题修改

CHENJIE-PC\QiXiang_CHENJIE il y a 4 ans
Parent
commit
102e641870
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6 3
      src/hal_module_adapter.c

+ 6 - 3
src/hal_module_adapter.c

@@ -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;