Selaa lähdekoodia

高电平开机后在关机结束后执行软件复位,解决关机结束前再次打开ACC时无法关机的问题。

dd 3 kuukautta sitten
vanhempi
sitoutus
fa5d17a77c
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      3.BasicFunction/Source/power.c

+ 3 - 1
3.BasicFunction/Source/power.c

@@ -272,7 +272,9 @@ if( power_stPowStateOut.uwPowerKeyMode ==1)
             power_stPowStateOut.blPowerShutdownFlg = TRUE;
             power_stPowStateOut.uwPowerShutdnCnt = 0;
          Reset_POWER_LOCK_PORT();//  GPIO_ResetBits(POWER_LOCK_PORT,POWER_LOCK_PIN);//  iGpio_Write(HW_GPIO_POWERLOCK_PIN,ApiGpio_LowLevel);
-         Power_KeyChangeHandle();
+         DL_WWDT_disablePower(WWDT0_INST);
+         NVIC_SystemReset();
+         //Power_KeyChangeHandle();
         }
     }
     else