mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f08df428fa
The binary shift operators in C are defined via the change of their values, not the change of the memory representation of them. When reading a value from little endian out of buffer `buf`, `((uint16_t)buf[1] << 8) | buf[0]` will thus work regardless of the byte order of the host system. |
||
---|---|---|
.. | ||
include | ||
bmx280_saul.c | ||
bmx280.c | ||
Makefile |