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.

What's the use of f8wZCL.cfg in ZLL?

Other Parts Discussed in Thread: Z-STACK, CC2530

I found the file C:\Texas Instruments\Z-Stack Lighting 1.0.2\Projects\zstack\Tools\CC2530DB\f8wZCL.cfg, and looks like some macro whitch is used in ZLL source file are defined here.

But some macro were also define in the IAR "options->C/C++Complier->Preprocesson->Defined symbols".

What's the difference ?

Thanks!

  • Jack,

    Seems like your questions was answered in separate thread started by you:

    e2e.ti.com/support/wireless_connectivity/f/158/p/368897/1298086.aspx

    Please let us know in case of any confusion.

    Saurabh

  • There is no difference to put define in  f8wZCL.cfg or  in the IAR "options->C/C++Complier->Preprocesson->Defined symbols".

  • For a specific IAR project configuration, as YiKai said, there is no difference in compiled code if the compile option is found in the f8wZCL.cfg file or in the IDE pre-processor defines.

    Technically, though, there is a difference: in all Z-Stack applications:  (1) Compile options that are placed in a *.cfg file will be inherited by all projects include that file. This allows a group of applications to easily share the same settings. (2) Compile options that are placed in an application's pre-processor defines apply only to that application. This allows individualized "tuning" of compile settings.

    Another thing to consider: what happens if the same compile option is specified in both places, perhaps with different settings? In CC2530/31/33-based systems (EW8051) and CC2520-based systems (EW430), compile options in the IDE pre-processor defines list will override the same settings in a *.cfg file. In CC2538-based systems (EWARM), the opposite is true - compile options in a *.cfg file will override the same settings in the IDE pre-processor defines.

  • Thank you all above!

    Regards,

    Jack