是否可能?
另外,TIMER0/2在深度睡眠和扩展深度睡眠模式下工作吗?< / p > < p >谢谢你的帮助,< / p > < p > Andrea < / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / extended-sleep-mode typeof =“skos:概念”属性= " rdfs: label skos: prefLabel”数据类型= " " >延长睡眠模式< / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / low-power-mode-deep-sleep”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >低功率模式深度睡眠< / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords / timer-0”typeof = " skos:概念”属性= " rdfs: label skos: prefLabel”数据类型= " " >定时器0 < / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords /计时器”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >计时器< / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < divclass="field-label">Device:
.我已经做了以下步骤添加低功耗模式
1。i define CFG_DEEP_SLEEP in da15480_config.h and undefine
#if (EXT_SLEEP_ENABLED)
app_set_deep_sleep();
#else
app_disable_sleep();
#endif
我在app_adv_timer_handler中添加如下代码,我在app_adv_func中添加一个3分钟定时器,当定时器过期时,它将调用app_adv_timer_handler,然后BLE进入深度睡眠,但当前没有下降(3ma),似乎DA没有进入睡眠。如果我下载DA1458x_SDK_3.0.6\dk_apps\keil_projects\proximity\reporter_fh,电流确实下降了100ua。< / p > < p > int app_adv_timer_handler (ke_msg_id_t const是否,< br / >空白const *参数,< br / > ke_task_id_t const dest_id, < br / > ke_task_id_t const src_id) < br / > {< br / > GPIO_SetActive (GPIO_Power_Port GPIO_Power_Pin); < br / > app_adv_stop (); < br / > ke_timer_clear (APP_ADV_TIMER TASK_APP); < br / > app_set_deep_sleep (); < br / > ke_timer_clear (APP_ADV_TIMER,
app_ble_ext_wakeup_on();
app_button_enable();
return (KE_MSG_CONSUMED);< br / > 1。我在app_adv_stop中设置一个断点,我发现只要它停止广告,是否执行一个睡眠程序,当前下降相同的
2。如果我删除spi flash,the current is the same as stop advertising