AnsweredAssumed Answered

LwIP BYTE_ORDER compiler warning

Question asked by kerr.matthew on May 23, 2017
Latest reply on Jul 5, 2017 by E. A.



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:

<ac6 toolchain>/arm-none-eabi/include/machine/endian.h


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?