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.

osal_stop_timerex

Other Parts Discussed in Thread: CC2530

芯片:CC2530
协议栈:z-stack3.0.2
问题:

case ZDO_STATE_CHANGE:
        zclGenericApp_NwkState = (devStates_t)(MSGpkt->hdr.status);
        
        // now on the network
        if ( zclGenericApp_NwkState == DEV_ROUTER )
        {
          osal_stop_timerEx( zclGenericApp_TaskID, LED_BLINK_EVT );
        }

我在这个分支里面想要关掉一个定时器,结果失败了,但是当我用按键触发去关掉定时器的时候,结果又是成功的。我启用调试,发现在以上代码中

能进入if语句,但osal_stop_timerEx这个函数返回的值是INVALID_EVENT_ID=0x06。LED_BLINK_EVT 的值是0x0008。求解,谢谢。