Thread 中讨论的其他器件:Z-stack
您好、Ryan 和 YK、
我已经通过定义的宏 WDT_IN_PM1在 ZStack 3.0.2中启用看门狗、然后在 osal_start_system ()中将看门狗馈入如下 代码段、但每当转向调用 bdb_StartCommissioning (BDB_commissioning_mode_NWK_Steering)时、看门狗超时都是意外的、我们都知道、最大值为1秒、我的错是什么?
void osal_start_system( void )
{
#ifdef USE_ICALL
/* Kick off timer service in order to allocate resources upfront.
* The first timeout is required to schedule next OSAL timer event
* as well. */
ICall_Errno errno = ICall_setTimer(1, osal_msec_timer_cback,
(void *) osal_msec_timer_seq,
&osal_timerid_msec_timer);
if (errno != ICALL_ERRNO_SUCCESS)
{
ICall_abort();
}
#endif /* USE_ICALL */
#if !defined ( ZBIT ) && !defined ( UBIT )
for(;;) // Forever Loop
#endif
{
osal_run_system();
#ifdef WDT_IN_PM1
WD_KICK(); //feed watchdog
#endif
#ifdef USE_ICALL
ICall_wait(ICALL_TIMEOUT_FOREVER);
#endif /* USE_ICALL */
}
}