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.

关于协议栈的宏定义冲突,实际生效位置在哪里?

宏可以在f8wConfig.cfg,f8wCoord.cfg,f8wRouter.cfg,f8wZCL.cfg,f8wEndev.cfg等配置文件中定义,也可以在工程的头文件中定义,如nwk_globals.h,ZGlobals.h,ZDNwkMgr.h等xxx.h,如果在xxx.h头文件定义的宏和xxx.cfg定义的宏定义发生了冲突,会以哪一个的宏定义生效?

例:

ZDNwkMgr.h中

#if !defined ( ZDNWKMGR_MIN_TRANSMISSIONS )
  #define ZDNWKMGR_MIN_TRANSMISSIONS      0
#endif

f8wConfig.cfg中

-DZDNWKMGR_MIN_TRANSMISSIONS=20

哪个定义生效?

谢谢!