I am using CubeMX to generate a project using LWIP. The following files is added to my project which defines BYTE_ORDER:
This define generates a compiler warning because it is defined in my toolchain:
To suppress the warning, i wrap the cpu.h defined with #ifndef BYTE_ORDER/#endif
However I then need to be careful when regenerating code from CubeMX, to rejest any changes it makes to this file.
Am i doing this correctly? Or could you make the same changes to your supplied code?