From a3f9e7f1fba0c71de2417bee2ffa7847596abe78 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 19 Dec 2024 18:21:00 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E4=BC=91=E7=9C=A0=E6=97=A5?= =?utf8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../drivers/peripheral/utils/custom_save_runtime.h | 4 ++-- code/sdk/test/platform/testsuite/test_pm/test_pm.c | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h index 3176bda50..b0bdb91eb 100644 --- a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h +++ b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h @@ -189,8 +189,8 @@ typedef enum { RUNTIME_LOG_RING_PLAY_STOP_FINDWATCH, // 0x0F06 查找手表铃声播放停止 //低功耗记录 - RUNTIME_LOG_lOW_POWER_MIN = 0x1000, - + RUNTIME_LOG_lOW_POWER_MIN = 0x1000, + RUNTIME_LOG_lOW_POWER_M_SLEEP=0x10ff, //录音 RUNTIME_LOG_RECORD_MIN = 0x1100, RUNTIME_LOG_RECORD_START, // 0x1101 录音开始 diff --git a/code/sdk/test/platform/testsuite/test_pm/test_pm.c b/code/sdk/test/platform/testsuite/test_pm/test_pm.c index abfaab78a..8b314ebac 100755 --- a/code/sdk/test/platform/testsuite/test_pm/test_pm.c +++ b/code/sdk/test/platform/testsuite/test_pm/test_pm.c @@ -23,6 +23,7 @@ #include "los_status.h" #include "oal_interface.h" #include "rtc.h" +#include "custom_save_runtime.h" static void print_app_system_sleep_info(void) { @@ -44,6 +45,16 @@ static void print_app_system_sleep_info(void) PRINT("M core deepsleep cnt:%d, light cnt:%d\r\n", deepsleep_cnt, lightsleep_cnt); PRINT("M core last veto id:%d, last veto count:%d\r\n", sleep_info->sleep_veto.last_veto_id, sleep_info->sleep_veto.last_veto_count); + if(m_core_sleep) + uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_M_SLEEP); + else + uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_MIN); + + uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_MIN|sleep_info->sleep_veto.last_veto_id); + + + + } static int tesetsuit_m_sys_enter_lightsleep(int argc, char *argv[]) -- 2.17.1