This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC2652R:osalportTimer 未调用 ZigBee 堆栈中的事件

Guru**** 2595800 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1358477/cc2652r-osalporttimer-is-not-calling-event-in-zigbee-stack

器件型号:CC2652R
 /*配置应用程序任务。 */
  Task_Params taskParams;

  Task_Params_(&taskParams);
  taskParams.stack = kz_main_appTaskStack
  taskParams.STACKSIZE =_KZ_APP_TASK_STACK_SIZE
  taskParams.priority = 1

  extern void KZ_AppMain_init (UArg a0UArg A1);
  Task_structure (&kz_main_appTaskKZ_AppMain_init&taskParamsNULL);
  KZ_Main_Set_EVENT (_KZ_MAINEVT_BACKUP_PAIR15000、FALSE);
其中 kz_main_set_event 为  
void KZ_Main_Set_EVENT (UINT32事件UINT32延迟bool 周期)
{
  //如果延迟不为0,则队列事件延迟
  if (延迟)
  {
    if (周期性)
      OsalPortTimers_startReloadTimer (kz_main_taskIdeventdelay);
    否则
      OsalPortTimers_startTimer (kz_main_taskIdeventdelay);
  }
  //更新应用程序事件并设置任务应用程序事件
  否则
  {
    OsalPort_setEvent (kz_main_taskIdevent);
  }

15秒后,我无法获得事件回调。 使用 SDK 6.10