1 #if (AOS_COMP_PWRMGMT > 0) 2 #include "pwrmgmt.h" 3 #endif 4 5 #include "ameba_soc.h" 6 7 int pwrmgmt_cpu_active_msec_set(uint32_t active_time); 8 uint32_t pwrmgmt_sleep_type_set(uint32_t type); 9 int pwrmgmt_cpu_lowpower_suspend(uint32_t suspend_module); 10 int pwrmgmt_cpu_lowpower_resume(uint32_t resume_module); 11 int pwrmgmt_cpu_minisleep_msec_set(uint32_t time_ms); 12 uint32_t pwrmgmt_cpu_minisleep_msec_get(void); 13 int pwrmgmt_wifi_powersave_resume(uint32_t resume_module); 14 int pwrmgmt_wifi_powersave_suspend(uint32_t suspend_module); 15 16 void pmu_unregister_sleep_callback(u32 nDeviceId); 17 void pmu_register_sleep_callback(u32 nDeviceId, PSM_HOOK_FUN sleep_hook_fun, void* sleep_param_ptr, PSM_HOOK_FUN wakeup_hook_fun, void* wakeup_param_ptr); 18 void pmu_acquire_deepwakelock(uint32_t nDeviceId); 19 void pmu_release_deepwakelock(uint32_t nDeviceId); 20 21