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.

Getting TI-RTOS to react on #defines in the C-environment

Hello dear e2e-forum,

I am using a Concerto F28M35 device and I am running TI RTOS on the m3 core. I have set a static IP-adress in my Ethernet-Configuration in my TI-RTOS-configfile. But I have two different variations of my project, which I set by #defines in C.

like:

#define VARIANT1    1
#define VARIANT2    0

Now I need my TI-RTOS-configfile to react on this, because I need different IP-Addresses for my variations. Something like:

if (c-define.VARIANT1 == 1)   --> IpAdress = xxxx
else if (c-define.VARIANT2 == 1) --> IpAdress = yyyy

I think it's like this thread (http://e2e.ti.com/support/embedded/tirtos/f/355/t/298160.aspx), only the other way around. Is this possible?

Thanks for your support,

Philipp