December 13, 2020

USB - USB and byte order

There is good news for modern processors (x86 and ARM in particular). The byte order for multi-byte data in USB packets is little endian. Of course this means if you write a USB driver assuming this (as I most definitely will) and someone tries to use that driver on some historical processor like an m68k, it will fail.

This is of no consequence to my writing embedded code to run on an ARM based STM32 chip, so I simply ignore it.

Be lazy, make life simple, fly in the face of supposed good practices.


Feedback? Questions? Drop me a line!

Tom's Computer Info / [email protected]