你报警了吗?如果是这样,我认为你需要定期调用它。另外,在您的情况下,函数只调用一次。如果调用函数中的DRVIVTMRYORD返回DRVH-HANDLE无效,会发生什么?如果它碰巧是侥幸,那么系统服务将永远不会初始化,因为服务在打开底层计时器时不会再有第二次破解。在任何情况下,查看SysStM.C中的函数。那你就没事了。有人说过,我强烈建议不要把和声单独产生。
以上来自于百度翻译
以下为原文
Have you set up any alarms? If so, I think that you'll need it be called periodically. Additionally, in your case, the function would be called only once. What would happen if the call to DRV_TMR_Open in that function returned DRV_HANDLE_INVALID? If it happened to be a fluke then the system service would never initialize as the service would never get a second crack at opening the underlying timer.
In any case, look at the function in sys_tmr.c. You are right in that if everything goes well with a single call, and you're not using any alarms, then you'll be just fine. That having been said, I would strongly advise leaving the call that Harmony generated alone.
你报警了吗?如果是这样,我认为你需要定期调用它。另外,在您的情况下,函数只调用一次。如果调用函数中的DRVIVTMRYORD返回DRVH-HANDLE无效,会发生什么?如果它碰巧是侥幸,那么系统服务将永远不会初始化,因为服务在打开底层计时器时不会再有第二次破解。在任何情况下,查看SysStM.C中的函数。那你就没事了。有人说过,我强烈建议不要把和声单独产生。
以上来自于百度翻译
以下为原文
Have you set up any alarms? If so, I think that you'll need it be called periodically. Additionally, in your case, the function would be called only once. What would happen if the call to DRV_TMR_Open in that function returned DRV_HANDLE_INVALID? If it happened to be a fluke then the system service would never initialize as the service would never get a second crack at opening the underlying timer.
In any case, look at the function in sys_tmr.c. You are right in that if everything goes well with a single call, and you're not using any alarms, then you'll be just fine. That having been said, I would strongly advise leaving the call that Harmony generated alone.
举报