Hi,
I checked the USB OS Adapter has the ENDIANNESS definition at <usb_osa.h>:
/*! @brief Define big endian */
#define USB_BIG_ENDIAN (0U)
/*! @brief Define little endian */
#define USB_LITTLE_ENDIAN (1U)
/*! @brief Define current endian */
#define ENDIANNESS USB_LITTLE_ENDIAN
The OS adapter (OSA) is used to wrap the differences between RTOSes and enable a USB stack with the
same code base and behavior.
Note
OSA should not be used in the USB application. Therefore, from the USB application viewpoint, OSA is invisible.
If your application doesn't use RTOS, it need to software convert data from little endian to big endian.
best regards,
Mike