I have a Simulink model which is configured to generate code with GRT target. I also specified the ByteOrdering property to be "LittleEndian" in the "Hardware Implemenation Pane" of the configuration parameters dialog box and I generate code for the model. However when I open the "rt_nonfinite.c" file generated during the build process, I find the following code:
uint16_T one = 1; enum { LittleEndian, BigEndian } machByteOrder = (*((uint8_T *) &one) == 1) ? LittleEndian : BigEndian;
Best Answer