⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
4个帖子/ 0新
最后一篇
ankit.
离线
最后一次露面:3个月5天前
加入:2017-05-24 07:42
app_easy_timer.

你好,

我的应用程序基于计时器。所以,我想要一个普通计时器。在正常模式中,我使用Timer0,一切正常正常工作。但在启用扩展睡眠模式后,我发现Timer0无法正常工作。因此,在少量文档和支持之后,我知道Timer0不能在睡眠模式下使用,因为它被BLE使用。所以,现在我正在使用app_easy_timer();在我的申请中。它在扩展睡眠模式下工作正常,但上电(当设备不在睡眠模式时),app_easy_timer()不起作用。当设备进入睡眠模式时,它只有效。

1.是否有任何方法可以在正常模式下使用app_easy_timer()(仅限上电)。
2.是否有任何功能或入口点指示我可以使用app_easy_timer()开始。所以,我可以在那里进行电源功能。

设备:
sts_dialog(未经验证)
嗨ankit,

嗨ankit,

关于您的第一个问题我在正常模式和扩展睡眠模式事件中使用App_easy_timer()函数,它运行正常。For the second question, it’s sure that you can use the app_easy_timer() in every functionality you want to implement, except if you set up the timer before the .app_on_init() callback function(after the completion of this function you can use the timer) then a GAPM_RESET is issued after that function and all the messages in the kernel queue are flushed including timers and in general after a GAPM_RESET all the timers that are issued before that command are flushed. So you will have to check if the timer is indeed set and that a GAPM_RESET is not invoked before the timer has elapsed.

谢谢,

sts_dialog。

ankit.
离线
最后一次露面:3个月5天前
加入:2017-05-24 07:42
这究竟发生了什么。

这究竟发生了什么。我正在调用app_easy_timer()中.App_on_init()函数。
那么,我应该在哪里开始app_easy_timer?是否有其他回调在.app_on_init()之后被调用?它必须只被调用一次,因为当我的电脑上电时,我必须只做一次。

目前,我正在初始化.default_operation_adv()函数,app_easy_timer()正在运行正常。

sts_dialog(未经验证)
完成后

完成App_On_Init()函数后,您可以使用您想要的App_easy_timer()。在App_On_Init()结束后,您可以在App_On_init()结束后,您可以使用.App_on_db_init_complete callcack在user_callback_config.h中。

谢谢,

sts_dialog。