#include "ohosfwk_startup.h"
#endif
+#ifdef SUPPORT_BATTERY_SERVICE
+#include "battery_service.h"
+#endif
+
#define EMMC_BASE_ADDR 0x52062000
#define TASK_PRIORITY_APP (osPriority_t)(17)
#define TICK_TEN_MS (10U)
uapi_pm_control(PM_DISPLAY_POWER_OFF);
#endif
+
+
#if DSP_EXIST == YES
audio_init();
#endif
ohos_startup();
#endif
uapi_pm_remove_sleep_veto(PM_ID_DEBUG);
+
+
+#ifdef SUPPORT_BATTERY_SERVICE
+ uapi_battery_init();
+#endif
set_startup_finish_flag();
}
#include "pm_lp_stub.h"
#include "hal_pmu_ldo.h"
#include "cmsis_os2.h"
-
+#ifdef SUPPORT_BATTERY_SERVICE
+#include "battery_service.h"
+#endif
#ifdef CONFIG_LOW_POWER_TEST
static bool g_pms_dpu_ready = false;
#else
return ERRCODE_FAIL;
}
}
+#ifdef SUPPORT_BATTERY_SERVICE
+ battery_service_resume();
+#endif
#if defined(ENABLE_UIKIT) || defined(ENABLE_LVGL)
NotifyScreenOn(); // Instruct the uikit to start the display operation.
#endif
lcd_set_status(false);
g_pms_dpu_ready = false;
display_suspend_power_off();
+
+ #ifdef SUPPORT_BATTERY_SERVICE
+ battery_service_suspend();
+ #endif
uapi_pm_request_mode(PM_ID_VIDEO, PM_MODE_LP);
return ERRCODE_SUCC;
}