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.

MSP432P4111: Compile time code selection in Sysbios .cfg file using #define

Part Number: MSP432P4111

G'Day all,

Is there a way have different code compiled into a projects' .cfg file using #defines.

In my particular case, for debug builds I'd like to use standard SysMin.outputFxn function so that System_printf() goes through the debugger, but for release builds I'd like to buffer System_printf() data for later retrieval.   I'd like to do something along the lines of

#ifndef DEBUG

SysMin.outputFxn = "&my_outputFxn";

#endif 

Is this possible?

Cheers

Julian

**Attention** This is a public forum