summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorRafael Silva <[email protected]>2022-04-07 11:13:34 +0100
committerRafael Silva <[email protected]>2022-06-02 09:35:30 +0100
commitea81d22f184fa8fd6c46c35c8be86e47996b46c8 (patch)
treef7318730a122ce4dfd46dc7c2393f6377c609b55 /src/portable
parentfbc29794287b1f22388a09e289ff7b7698ef3eab (diff)
add __evenaccess keyword for CCRX compiler compatibility
Signed-off-by: Rafael Silva <[email protected]>
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/renesas/link/dcd_link.c4
-rw-r--r--src/portable/renesas/link/hcd_link.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/portable/renesas/link/dcd_link.c b/src/portable/renesas/link/dcd_link.c
index 0f9037593..dcbd68b8d 100644
--- a/src/portable/renesas/link/dcd_link.c
+++ b/src/portable/renesas/link/dcd_link.c
@@ -52,7 +52,11 @@
//--------------------------------------------------------------------+
/* LINK core registers */
+#if defined(__CCRX__)
+#define LINK_REG ((LINK_REG_t __evenaccess*)LINK_REG_BASE)
+#else
#define LINK_REG ((LINK_REG_t*)LINK_REG_BASE)
+#endif
/* Start of definition of packed structs (used by the CCRX toolchain) */
TU_ATTR_PACKED_BEGIN
diff --git a/src/portable/renesas/link/hcd_link.c b/src/portable/renesas/link/hcd_link.c
index 1197e1de5..f1ea2b821 100644
--- a/src/portable/renesas/link/hcd_link.c
+++ b/src/portable/renesas/link/hcd_link.c
@@ -48,7 +48,11 @@
//--------------------------------------------------------------------+
/* LINK core registers */
+#if defined(__CCRX__)
+#define LINK_REG ((LINK_REG_t __evenaccess*)LINK_REG_BASE)
+#else
#define LINK_REG ((LINK_REG_t*)LINK_REG_BASE)
+#endif
TU_ATTR_PACKED_BEGIN
TU_ATTR_BIT_FIELD_ORDER_BEGIN