下面是我最近遇到的问题,然后再TI官方论坛中找到的回答。
Q1: what is this ZBIT,ZBIT2,UBIT?
code:in osal.c
void osal_start_system( void )
{
#if !defined ( ZBIT )
for(;;) // Forever Loop
#endif
{
uint8 idx = 0;
...
A1: ZBIT is a compile option that is used for TI internal testing and is not defined by default.
Q2:What about "macEventLoop" and "nwk_event_loop," functions? Are they open to customers?
code in OSAL_SampleApp.c
const pTaskEventHandlerFn tasksArr[] = {
macEventLoop,
nwk_event_loop,
Hal_ProcessEvent,
#if defined( MT_TASK )
MT_ProcessEvent,
#endif
APS_event_loop,
#if defined ( ZIGBEE_FRAGMENTATION )
APSF_ProcessEvent,
#endif
ZDApp_event_loop,
#if defined ( ZIGBEE_FREQ_AGILITY ) || defined ( ZIGBEE_PANID_CONFLICT )
ZDNwkMgr_event_loop,
#endif
SampleApp_ProcessEvent
};
A2:The macEventLoop and nwk_event_loop code is in the TIMAC and Router/EndDevice libraries, respectively, and are not open to customers.