ble da14580资料收集
低功耗休眠模式: 1 转自: https://blog.csdn.net/sinat_23338865/article/details/83790023 睡眠代码:app_default_sleep_mode = ARCH_EXT_SLEEP_ON;arch_set_sleep_mode(app_default_sleep_mode);user_s 睡眠代码: app_default_sleep_mode = ARCH_EXT_SLEEP_ON; arch_set_sleep_mode(app_default_sleep_mode); user_scheduler_reinit(); 1、DA14580在睡眠之前需要将app_default_sleep_mode定义为相应的睡眠模式; 2、调用arch_set_sleep_mode()使设备进入睡眠模式; 唤醒代码: if (GetBits16(SYS_STAT_REG, PER_IS_DOWN)) { periph_init(); } app_default_sleep_mode = ARCH_SLEEP_OFF; arch_set_sleep_mode(app_default_sleep_mode); arch_ble_force_wakeup(); app_easy_wakeup(); a、唤醒外设 b、关闭睡眠模式 c