Parcourir la source

休眠时不断开ups本身的供电使能端口

BJQX-ZHENGCHAO\Zhengchao il y a 1 an
Parent
commit
ce0b394598
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      code/hal/hal_adapter.c

+ 5 - 1
code/hal/hal_adapter.c

@@ -1064,7 +1064,8 @@ void SystemDeinit(void)
 		|| pinIndex == PortConfigSet_PortContainer_INT_PTE11_GPIO_IN_MCU_3D_INT1
 		|| pinIndex == PortConfigSet_PortContainer_INT_PTD5_GPIO_IN_MCU_3D_INT2
 		|| pinIndex == PortConfigSet_PortContainer_INT_PTB0_GPIO_IN_MCU_WAKEUP1
-		|| pinIndex == PortConfigSet_PortContainer_INT_PTE2_GPIO_IN_MCU_WAKEUP2)
+		|| pinIndex == PortConfigSet_PortContainer_INT_PTE2_GPIO_IN_MCU_WAKEUP2
+		|| pinIndex == DioConf_DioChannel_PTA1_GPIO_OUT_MCU_BAT_PWR_EN)
 		{
 			continue;
 		}
@@ -1230,6 +1231,9 @@ void SystemModulesInit(void)
 	/* Enable the Gpt notification to periodically service the Wdg */
 //	Gpt_EnableNotification(GptConf_GptChannelConfiguration_GptChannelConfiguration_0);
 
+	//enable the batt power
+	Dio_WriteChannel(DioConf_DioChannel_PTA1_GPIO_OUT_MCU_BAT_PWR_EN,STD_ON);
+
 	Icu_DeInit();
 
 	WdgInit();