增加休眠日志 1533/5
authorhcj <1224667075@qq.com>
Thu, 19 Dec 2024 10:21:00 +0000 (18:21 +0800)
committerhcj <1224667075@qq.com>
Thu, 19 Dec 2024 10:21:00 +0000 (18:21 +0800)
code/sdk/drivers/peripheral/utils/custom_save_runtime.h
code/sdk/test/platform/testsuite/test_pm/test_pm.c

index 3176bda..b0bdb91 100644 (file)
@@ -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 录音开始
index abfaab7..8b314eb 100755 (executable)
@@ -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[])