为何我发现zll程序调用了ZDApp_NetworkInit后却到不了ZDO_StartDevice,可以帮我解答一下吗?
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.
这个没有影响的,因为这个程序很简单就是event跳转,你在debug试试吧。
void ZDApp_NetworkInit( uint16 delay )
{
if ( delay )
{
// Wait awhile before starting the device
MAP_osal_start_timerEx( ZDAppTaskID, ZDO_NETWORK_INIT, delay );
}
else
{
MAP_osal_set_event( ZDAppTaskID, ZDO_NETWORK_INIT );
}
}
if ( events & ZDO_NETWORK_INIT )
{
// Initialize apps and start the network
ZDApp_ChangeState( DEV_INIT );
ZDO_StartDevice( (uint8)ZDO_Config_Node_Descriptor.LogicalType, devStartMode,
DEFAULT_BEACON_ORDER, DEFAULT_SUPERFRAME_ORDER );
// Return unprocessed events
return (events ^ ZDO_NETWORK_INIT);
由于我们的IAR版本太高了没法编译ZLL,我测试了3.0.2和CC2652R 3.10