下面是我最近遇到的问题,然后再TI官方论坛中找到的回答。
Q1:what is thisZBIT,ZBIT2,UBIT?
code:in osal.c
void osal_start_system( void )
{
#if !defined (ZBIT)
for(;;) // Forever Loop
#endif
{
uint8 idx = 0;
...
A1:ZBITis 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:ThemacEventLoopandnwk_event_loopcodeis in the TIMAC and Router/EndDevice libraries, respectively, and are not open to customers.
本文解答了关于TI产品的内部测试选项ZBIT、ZBIT2、UBIT的含义,以及macEventLoop和nwk_event_loop这两个事件循环函数是否对外开放的问题。ZBIT等为TI内部测试使用,而macEventLoop和nwk_event_loop分别位于TIMAC和路由器/终端设备库中,并不对客户开放。
2129

被折叠的 条评论
为什么被折叠?



