zephyr/drivers/hwinfo
Steven Slupsky c54f7ec1fc drivers: hwinfo: fix endianness for sam0 and nrf
HWINFO drivers should be responsible for ensuring that
the data structure is a sequence of bytes. That is not
what the current sam0 and nordic drivers do. The drivers
read the data as u32_t and then memcpy the data to a
buffer. This ensures the data has the endianness of the
underlying MCU, which in this case is Cortex M0 which
is little endian.

This commit fixes the endianness so the data can be
interpreted as a "left to right sequence of bytes".

This commit updates the API doc to provide clarification
of the data structure.
Add to 2.3 release notes.

Fixes #23444, #24103

Signed-off-by: Steven Slupsky <sslupsky@gmail.com>
2020-04-09 19:30:32 +02:00
..
CMakeLists.txt
Kconfig SoC: stm32: Include LL utilities if HWINFO is selected 2020-02-27 21:14:54 +01:00
hwinfo_esp32.c
hwinfo_handlers.c
hwinfo_imxrt.c
hwinfo_litex.c drivers: litex: Convert litex drivers to new DT_INST macros 2020-03-30 12:49:43 -05:00
hwinfo_mcux_sim.c
hwinfo_nrf.c drivers: hwinfo: fix endianness for sam0 and nrf 2020-04-09 19:30:32 +02:00
hwinfo_sam.c drivers: hwinfo: atmel_sam: Replace DT_FLASH define 2020-04-09 08:41:09 -05:00
hwinfo_sam0.c drivers: hwinfo: fix endianness for sam0 and nrf 2020-04-09 19:30:32 +02:00
hwinfo_shell.c
hwinfo_stm32.c
hwinfo_weak_impl.c