From b4c3f9f31b4c07a296ca66ba23b312778ca56b80 Mon Sep 17 00:00:00 2001 From: Kacper Sagnowski Date: Tue, 21 Apr 2026 10:52:39 +0200 Subject: [PATCH 1/2] Fix fallback endianness macro in tinywaveout_c.h --- lib_util/tinywaveout_c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_util/tinywaveout_c.h b/lib_util/tinywaveout_c.h index 7dee32745..123fc4517 100644 --- a/lib_util/tinywaveout_c.h +++ b/lib_util/tinywaveout_c.h @@ -47,7 +47,7 @@ #if !defined( __TWO_LE ) && !defined( __TWO_BE ) #pragma message( "unknown processor - assuming Little Endian" ) -#define __TWI_LE +#define __TWO_LE #endif #define __TWO_SUCCESS ( 0 ) -- GitLab From 1a6246a130ae9ea2c07b7883229b05bcc22f9202 Mon Sep 17 00:00:00 2001 From: Kacper Sagnowski Date: Tue, 21 Apr 2026 10:53:18 +0200 Subject: [PATCH 2/2] Add checks for compiler macros defined by Visual Studio on Arm --- lib_util/tinywavein_c.h | 2 +- lib_util/tinywaveout_c.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_util/tinywavein_c.h b/lib_util/tinywavein_c.h index 6e0e69beb..eafac53d9 100644 --- a/lib_util/tinywavein_c.h +++ b/lib_util/tinywavein_c.h @@ -38,7 +38,7 @@ #include #include -#if defined( __i386__ ) || defined( _M_IX86 ) || defined( __x86_64__ ) || defined( _M_X64 ) || defined( __arm__ ) || defined( __aarch64__ ) || ( defined( __BYTE_ORDER__ ) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ) +#if defined( __i386__ ) || defined( _M_IX86 ) || defined( __x86_64__ ) || defined( _M_X64 ) || defined( __arm__ ) || defined( __aarch64__ ) || defined( _M_ARM ) || defined( _M_ARM64 ) || ( defined( __BYTE_ORDER__ ) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ) #define __TWI_LE /* _T_iny _W_ave _I_n _L_ittle _E_ndian */ #endif diff --git a/lib_util/tinywaveout_c.h b/lib_util/tinywaveout_c.h index 123fc4517..c82113538 100644 --- a/lib_util/tinywaveout_c.h +++ b/lib_util/tinywaveout_c.h @@ -37,7 +37,7 @@ #include #include -#if defined( __i386__ ) || defined( _M_IX86 ) || defined( _M_X64 ) || defined( __x86_64__ ) || defined( __arm__ ) || defined( __aarch64__ ) || ( defined( __BYTE_ORDER__ ) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ) +#if defined( __i386__ ) || defined( _M_IX86 ) || defined( _M_X64 ) || defined( __x86_64__ ) || defined( __arm__ ) || defined( __aarch64__ ) || defined( _M_ARM ) || defined( _M_ARM64 ) || ( defined( __BYTE_ORDER__ ) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ) #define __TWO_LE /* _T_iny _W_ave _O_ut _L_ittle _E_ndian */ #endif -- GitLab