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.

RTOS: Sysbios configuration conditional declaration

Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello,

I have a sysbios project and I would like to enable/disable a specific line in the configuration file depending on a definition.

Similar answers suggest to use javascript if statement syntax. In my situation the definition is in a C header file and not set in the project properties

Here is a pseudo-code of what i try to achieve

Some_Header.h

#define USE_EVENT_MODEULE

---------------------------------

project.cfg

#include Some_Header.h //make cfg aware of the USE_EVENT_MODEULE

#ifdef USE_EVENT_MODEULE
var Event = xdc.useModule('ti.sysbios.knl.Event'); // actual line for using the events module
#endif

Any suggestions? Thanks in advance