Merge branch 'xts_origin' of codeup.aliyun.com:64191456b9581d62e8f81ac0/FD230 into... 187/1 187/head 188/target/1
authorSnickerSun <snickersun@163.com>
Wed, 29 May 2024 06:49:36 +0000 (14:49 +0800)
committerSnickerSun <snickersun@163.com>
Wed, 29 May 2024 06:49:36 +0000 (14:49 +0800)
1  2 
code/sdk/drivers/peripheral/utils/custom_utils.c

@@@ -136,9 -136,32 +136,12 @@@ void uapi_reboot_device(void
  {
      mcu_os_sys_reset(NULL,NULL);
  }
 -#include "non_os_reboot.h"
 -#include "chip_io.h"
 -#define BT_RESET_DELAY  500
 -#define PM_MCU_SEND_IPC_WKUP_BT_VAL        0x2
 -#if MASTER_BY_BRANDY_ONLY
 -#define PM_SLEEP_SOFT_RESET_FORCE_WKUP_REG 0x57000014
 -#define PM_SLEEP_SOFT_RESET_FORCE_WKUP_VAL 0xb66
 -#define PM_MCU_SEND_IPC_WKUP_BT_REG        0x52000034
 -#define PM_MCU_SEND_IPC_WKUP_BT_BIT        0x1
 -#endif
 -void uapi_force_reboot(void)
 -{
 -    // when bt at sleep, need wkup bt before soft reset
 -    writew(PM_SLEEP_SOFT_RESET_FORCE_WKUP_REG, PM_SLEEP_SOFT_RESET_FORCE_WKUP_VAL);
 -    writew(PM_MCU_SEND_IPC_WKUP_BT_REG, PM_MCU_SEND_IPC_WKUP_BT_VAL);
 -    uapi_tcxo_delay_ms(BT_RESET_DELAY);
 -    set_cpu_utils_reset_cause(REBOOT_CAUSE_APPLICATION_SYSRESETREQ);
 -    writew(0x5702C010, 0x5A5A);
 -    hal_reboot_chip();
 -  
 -}
 +
  void shutdown_reboot_prejobs_task(void)
  {
+     //保存步数
+     do_cywee_service_check_msg(CYWEE_SERVICE_CMD_SAVE_DATA,NULL);
+ 
      addressbookTowrite();
      
      uapi_calendar_store_date();