Skip to content

Commit bce460a

Browse files
committed
remove static assert for CCRX compiler
CCRX might have some trouble with this, testing Signed-off-by: Rafael Silva <[email protected]>
1 parent c826f0b commit bce460a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/portable/renesas/link/link_type.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ typedef struct TU_ATTR_PACKED {
6262
};
6363
} LINK_REG_PIPE_TR_t; /* Size = 4 (0x4) */
6464

65+
#if !defined(__CCRX__)
6566
TU_VERIFY_STATIC(sizeof(LINK_REG_PIPE_TR_t) == 4, "incorrect size");
67+
#endif
6668

6769
/* LINK_REG Structure */
6870
typedef struct TU_ATTR_PACKED {
@@ -971,6 +973,7 @@ typedef struct TU_ATTR_PACKED {
971973
};
972974
} LINK_REG_t; /* Size = 1032 (0x408) */
973975

976+
#if !defined(__CCRX__)
974977
TU_VERIFY_STATIC(offsetof(LINK_REG_t, SYSCFG) == 0x00000000, "incorrect offset");
975978
TU_VERIFY_STATIC(offsetof(LINK_REG_t, BUSWAIT) == 0x00000002, "incorrect offset");
976979
TU_VERIFY_STATIC(offsetof(LINK_REG_t, SYSSTS0) == 0x00000004, "incorrect offset");
@@ -1032,9 +1035,10 @@ TU_VERIFY_STATIC(offsetof(LINK_REG_t, DPUSR2R) == 0x00000168, "incorrect offset"
10321035
TU_VERIFY_STATIC(offsetof(LINK_REG_t, DPUSRCR) == 0x0000016A, "incorrect offset");
10331036
TU_VERIFY_STATIC(offsetof(LINK_REG_t, DPUSR0R_FS) == 0x00000400, "incorrect offset");
10341037
TU_VERIFY_STATIC(offsetof(LINK_REG_t, DPUSR1R_FS) == 0x00000404, "incorrect offset");
1038+
#endif
10351039

10361040
TU_ATTR_PACKED_END /* End of definition of packed structs (used by the CCRX toolchain) */
1037-
TU_ATTR_BIT_FIELD_ORDER_END
1041+
TU_ATTR_BIT_FIELD_ORDER_END
10381042

10391043
/*--------------------------------------------------------------------*/
10401044
/* Register Bit Definitions */

0 commit comments

Comments
 (0)