Browse Source

屏蔽GPS发送接收程序【测试】

CHENJIE-PC\QiXiang_CHENJIE 3 years ago
parent
commit
2dbeea13fe
3 changed files with 11 additions and 9 deletions
  1. 8 6
      generate/src/Port_Ci_Port_Ip_VS_0_PBcfg.c
  2. 2 2
      generate/src/Port_VS_0_PBcfg.c
  3. 1 1
      src/AppTaskGps.c

+ 8 - 6
generate/src/Port_Ci_Port_Ip_VS_0_PBcfg.c

@@ -157,27 +157,29 @@ const Port_Ci_Port_Ip_PinSettingsConfig g_pin_mux_InitConfigArr_VS_0[NUM_OF_CONF
     },
     {
         .portBase                    = IP_PORTD,
-        .gpioBase                    = NULL_PTR,
+        .gpioBase                    = IP_PTD,
         .pinPortIdx                  = 7,
-        .mux                         = PORT_MUX_ALT2,
+        .mux                         = PORT_MUX_AS_GPIO,
         .direction                   = PORT_CI_PORT_PIN_OUT,
         .pullConfig                  = PORT_INTERNAL_PULL_NOT_ENABLED,
         .driveStrength               = PORT_DRIVE_STRENGTH_LOW,
         .passiveFilter               = (boolean)FALSE,
         .lockRegister                = PORT_LOCK_REGISTER_DISABLED,
-        .digitalFilter               = (boolean)FALSE
+        .digitalFilter               = (boolean)FALSE,
+        .initValue                   = 1
     },
     {
         .portBase                    = IP_PORTD,
-        .gpioBase                    = NULL_PTR,
+        .gpioBase                    = IP_PTD,
         .pinPortIdx                  = 6,
-        .mux                         = PORT_MUX_ALT2,
+        .mux                         = PORT_MUX_AS_GPIO,
         .direction                   = PORT_CI_PORT_PIN_IN,
         .pullConfig                  = PORT_INTERNAL_PULL_NOT_ENABLED,
         .driveStrength               = PORT_DRIVE_STRENGTH_LOW,
         .passiveFilter               = (boolean)FALSE,
         .lockRegister                = PORT_LOCK_REGISTER_DISABLED,
-        .digitalFilter               = (boolean)FALSE
+        .digitalFilter               = (boolean)FALSE,
+        .initValue                   = 1
     },
     {
         .portBase                    = IP_PORTE,

+ 2 - 2
generate/src/Port_VS_0_PBcfg.c

@@ -293,9 +293,9 @@ static const Port_PinConfigType Port_aPinConfigDefault_VS_0[PORT_MAX_CONFIGURED_
     /* PCR Id, PCR Value, Output Level, Direction, IsGpio, Direction Configurable, Mode Changeable */
     {(uint16)72, (uint32)0x00000200, (uint8)1, (Port_PinDirectionType)1, (boolean)FALSE, (boolean)FALSE, (boolean)TRUE},
     /* PCR Id, PCR Value, Output Level, Direction, IsGpio, Direction Configurable, Mode Changeable */
-    {(uint16)103, (uint32)0x00000200, (uint8)1, (Port_PinDirectionType)2, (boolean)FALSE, (boolean)FALSE, (boolean)TRUE},
+    {(uint16)103, (uint32)0x00000100, (uint8)1, (Port_PinDirectionType)2, (boolean)TRUE, (boolean)TRUE, (boolean)TRUE},
     /* PCR Id, PCR Value, Output Level, Direction, IsGpio, Direction Configurable, Mode Changeable */
-    {(uint16)102, (uint32)0x00000200, (uint8)1, (Port_PinDirectionType)1, (boolean)FALSE, (boolean)FALSE, (boolean)TRUE},
+    {(uint16)102, (uint32)0x00000100, (uint8)1, (Port_PinDirectionType)1, (boolean)TRUE, (boolean)TRUE, (boolean)TRUE},
     /* PCR Id, PCR Value, Output Level, Direction, IsGpio, Direction Configurable, Mode Changeable */
     {(uint16)133, (uint32)0x00000500, (uint8)1, (Port_PinDirectionType)2, (boolean)FALSE, (boolean)FALSE, (boolean)TRUE},
     /* PCR Id, PCR Value, Output Level, Direction, IsGpio, Direction Configurable, Mode Changeable */

+ 1 - 1
src/AppTaskGps.c

@@ -20,7 +20,7 @@ void GpsTask(void *pvParameters)
 	{
 		vTaskDelay(pdMS_TO_TICKS(100));
 		memset(RX_Buffer[UART_LPUART2],0x00,sizeof(RX_Buffer[UART_LPUART2]));
-		UART_Receive_Data(UART_LPUART2,RX_Buffer[UART_LPUART2],&pReadLen,1000);
+		//UART_Receive_Data(UART_LPUART2,RX_Buffer[UART_LPUART2],&pReadLen,1000);
 		if(pReadLen>0)
 		{
 			GpsDataDecode(RX_Buffer[UART_LPUART2]);