summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-07-22 17:24:59 +0700
committerhathach <[email protected]>2021-07-22 17:30:08 +0700
commitc4da1abb1eaa7aff432535878ada519d02382419 (patch)
treec238937db3b64fd016bb054aec5bee4f86f5ebd1 /src/portable
parent4e50ceba48c15206543fe662f098a98152ef4235 (diff)
rename bit filed order
clean up packed/bit order begin end
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/renesas/usba/dcd_usba.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/portable/renesas/usba/dcd_usba.c b/src/portable/renesas/usba/dcd_usba.c
index 0c206fdd0..f68f97458 100644
--- a/src/portable/renesas/usba/dcd_usba.c
+++ b/src/portable/renesas/usba/dcd_usba.c
@@ -95,7 +95,7 @@
#define FIFO_REQ_CLR (1u)
#define FIFO_COMPLETE (1u<<1)
-TU_BIT_FIELD_ORDER_BEGIN
+TU_ATTR_BIT_FIELD_ORDER_BEGIN
typedef struct {
union {
struct {
@@ -108,9 +108,9 @@ typedef struct {
};
uint16_t TRN;
} reg_pipetre_t;
-TU_BIT_FIELD_ORDER_END
+TU_ATTR_BIT_FIELD_ORDER_END
-TU_BIT_FIELD_ORDER_BEGIN
+TU_ATTR_BIT_FIELD_ORDER_BEGIN
typedef union {
struct {
volatile uint16_t u8: 8;
@@ -118,11 +118,11 @@ typedef union {
};
volatile uint16_t u16;
} hw_fifo_t;
-TU_BIT_FIELD_ORDER_END
+TU_ATTR_BIT_FIELD_ORDER_END
TU_ATTR_PACKED_BEGIN // Start of definition of packed structs (used by the CCRX toolchain)
-TU_BIT_FIELD_ORDER_BEGIN
+TU_ATTR_BIT_FIELD_ORDER_BEGIN
typedef struct TU_ATTR_PACKED
{
uintptr_t addr; /* the start address of a transfer data buffer */
@@ -133,7 +133,7 @@ typedef struct TU_ATTR_PACKED
uint32_t : 0;
};
} pipe_state_t;
-TU_BIT_FIELD_ORDER_END
+TU_ATTR_BIT_FIELD_ORDER_END
TU_ATTR_PACKED_END // End of definition of packed structs (used by the CCRX toolchain)