Files
CHJ/user/MCU/lhl_lowpower.h

25 lines
505 B
C
Raw Normal View History

2026-03-20 21:09:48 +08:00
#ifndef __LOWPOWER_H__
#define __LOWPOWER_H__
2026-03-20 21:19:04 +08:00
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;
2026-03-20 21:09:48 +08:00
2026-03-20 21:19:04 +08:00
void EnterLowPowerModeWFI(PWR_POWERMODE_t mode);
2026-03-20 21:09:48 +08:00
2026-03-20 21:19:04 +08:00
extern volatile u32 mcuModeSleeping;
extern u32 sleeptime ;
void LowPowerModeProcess(void);
2026-03-20 21:09:48 +08:00
#endif