Skip to content

Commit ea81d22

Browse files
committed
add __evenaccess keyword for CCRX compiler compatibility
Signed-off-by: Rafael Silva <[email protected]>
1 parent fbc2979 commit ea81d22

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/portable/renesas/link/dcd_link.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
//--------------------------------------------------------------------+
5353

5454
/* LINK core registers */
55+
#if defined(__CCRX__)
56+
#define LINK_REG ((LINK_REG_t __evenaccess*)LINK_REG_BASE)
57+
#else
5558
#define LINK_REG ((LINK_REG_t*)LINK_REG_BASE)
59+
#endif
5660

5761
/* Start of definition of packed structs (used by the CCRX toolchain) */
5862
TU_ATTR_PACKED_BEGIN

src/portable/renesas/link/hcd_link.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@
4848
//--------------------------------------------------------------------+
4949

5050
/* LINK core registers */
51+
#if defined(__CCRX__)
52+
#define LINK_REG ((LINK_REG_t __evenaccess*)LINK_REG_BASE)
53+
#else
5154
#define LINK_REG ((LINK_REG_t*)LINK_REG_BASE)
55+
#endif
5256

5357
TU_ATTR_PACKED_BEGIN
5458
TU_ATTR_BIT_FIELD_ORDER_BEGIN

0 commit comments

Comments
 (0)