zephyr/drivers/fpga
Jonathan Hamberg 9c1a45cc00 posix: Fix name collision with __bswap
__bswap_ in zephyr/sys/byteorder.h conflicts with __bswap_ in host's
byteswap.h. byteswap.h from host compiler used in posix_native_64 boards
causes a compilation issue.

This commit renames __bswap_ to BSWAP_ to prevent collision.

Before this commit a compilation error can be created by adding #include
<byteswap.h> to samples/net/sockets/echo/src/socket_echo.c

This does not change external API to byteorder.h, but does change
internal implementation which some other source files depend on.

Replaced manual byteswap operations in devmem_service.c with APIs from
byteorder.h which automatically converts to CPU endianess when necessary.

Fixes #44324

Signed-off-by: Jonathan Hamberg <jonathanhamberg@gmail.com>
2024-01-10 18:13:44 +00:00
..
CMakeLists.txt drivers: fpga: ice40: add support for the Lattice iCE40 series 2022-11-17 09:17:44 -05:00
fpga_eos_s3.c drivers: fpga: move to POST_KERNEL 2023-09-15 16:04:19 +02:00
fpga_eos_s3.h
fpga_ice40.c drivers: fpga: add an init priority config option 2023-08-24 15:35:37 +02:00
fpga_shell.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
fpga_zynqmp.c posix: Fix name collision with __bswap 2024-01-10 18:13:44 +00:00
fpga_zynqmp.h fpga controller: drivers: add ZynqMP driver 2022-04-21 13:00:57 +02:00
Kconfig drivers: fpga: add an init priority config option 2023-08-24 15:35:37 +02:00
Kconfig.eos_s3
Kconfig.ice40 drivers: fpga: imply CRC 2023-08-18 08:52:16 +03:00
Kconfig.zynqmp fpga controller: drivers: add ZynqMP driver 2022-04-21 13:00:57 +02:00