From 4da84f9454b11afa0cdfad758654bad0a7ecec83 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 24 Feb 2021 21:34:53 +0100 Subject: [PATCH] fixes for big endian support (svp drc, libpicofe update) --- pico/carthw/svp/ssp16.h | 5 +++++ platform/libpicofe | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pico/carthw/svp/ssp16.h b/pico/carthw/svp/ssp16.h index 318a4a7e..67f4f459 100644 --- a/pico/carthw/svp/ssp16.h +++ b/pico/carthw/svp/ssp16.h @@ -38,8 +38,13 @@ typedef union { unsigned int v; struct { +#if CPU_IS_LE unsigned short l; unsigned short h; +#else + unsigned short h; + unsigned short l; +#endif }; } ssp_reg_t; diff --git a/platform/libpicofe b/platform/libpicofe index dfe767a5..ebcff593 160000 --- a/platform/libpicofe +++ b/platform/libpicofe @@ -1 +1 @@ -Subproject commit dfe767a5facc30a07e0fdda2b85cf39662ec3fed +Subproject commit ebcff5930934425d379ec032da141ae073b72913 -- 2.39.5