ソースを参照

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

BJQX-ZHENGCHAO\Zhengchao 1 年間 前
コミット
ce0b394598
1 ファイル変更5 行追加1 行削除
  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();