From: SnickerSun Date: Wed, 29 May 2024 06:49:36 +0000 (+0800) Subject: Merge branch 'xts_origin' of codeup.aliyun.com:64191456b9581d62e8f81ac0/FD230 into... X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=refs%2Fchanges%2F187%2Fhead;p=mirrors%2FFD230.git Merge branch 'xts_origin' of codeup.aliyun.com:64191456b9581d62e8f81ac0/FD230 into xts_origin --- 4d170b9b4efdc76eb8da7b85fad5ae93a2af6316 diff --cc code/sdk/drivers/peripheral/utils/custom_utils.c index e769e2ca5,ab49fb64e..3727f727e --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/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();