From 21cb870014b9df2ea51e8759ef0d9f9e91728fb8 Mon Sep 17 00:00:00 2001 From: dvdb97 Date: Tue, 16 May 2023 08:31:39 +0200 Subject: [PATCH] first attempst to handle endianness --- src/raspi/spi.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/raspi/spi.cpp b/src/raspi/spi.cpp index 135adb1..fa214e2 100644 --- a/src/raspi/spi.cpp +++ b/src/raspi/spi.cpp @@ -10,6 +10,11 @@ #include #include + +#define SYSTEM_ENDIANNESS __cpp_lib_endian + +// TODO: Check out "cpu_to_leXX()" and "leXX()_to_cpu()" on Linux! + namespace sta {