{
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();