This commit is contained in:
2026-03-20 21:19:53 +08:00
parent 9d3b4b836f
commit 6a749331db
125 changed files with 29972 additions and 23051 deletions

View File

@@ -1,23 +1,21 @@
#ifndef __LOWPOWER_H__
#define __LOWPOWER_H__
typedef enum {
PWR_Wakeup_None = 0x00,
PWR_Wakeup_RTC = 0x01,
PWR_Wakeup_EXTI = 0x02,
PWR_Wakeup_LPTIM1 = 0x04,
PWR_Wakeup_LPTIM2 = 0x08,
PWR_Wakeup_IWDG = 0x10,
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>ã<EFBFBD>PWR_Wakeup_RTC | PWR_Wakeup_GPIO
}PWR_WakeupWay_TypeDef;
/*================================================*/
void EnterLowPowerModeWFI(PWR_POWERMODE_t mode);
extern volatile u32 mcuModeSleeping;
extern u32 sleeptime ;
void LowPowerModeProcess(void);
/*================================================*/
typedef struct{
PWR_POWERMODE_t lpm_mode;
u8 mcuModeSleeping ;
}__LPM_STA_TypeDef;
extern __LPM_STA_TypeDef lpmState;
void LowPowerModeProcess(void);
void SetupLowPowertoWakeupByHandwareTrigger(void);
void ExitLowPowerModeRecoverySysState(void);
#endif