I am implementing some unit tests with Unity. While I am perfectly happy to compile my functions defined for the (risc) ULP for testing on the Xtensa CPU; I would like to add some debug utilities that I do not wish in the release on the ULP binary.
I was hoping to find a flag behind which I can hide the debug commands.
Example:
Code: Select all
void my_ulp_function() {
#ifdef IS_ULP
// use the i2c driver for the ULP
#else
// use the 'normal' esp i2c driver
// add some debug-specific code
#endif
}
Thank you for you time