|
@@ -95,7 +95,10 @@
|
|
|
#define FIFO_REQ_CLR (1u)
|
|
#define FIFO_REQ_CLR (1u)
|
|
|
#define FIFO_COMPLETE (1u<<1)
|
|
#define FIFO_COMPLETE (1u<<1)
|
|
|
|
|
|
|
|
|
|
+// Start of definition of packed structs (used by the CCRX toolchain)
|
|
|
|
|
+TU_ATTR_PACKED_BEGIN
|
|
|
TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
|
TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
|
|
|
|
+
|
|
|
typedef struct {
|
|
typedef struct {
|
|
|
union {
|
|
union {
|
|
|
struct {
|
|
struct {
|
|
@@ -108,9 +111,7 @@ typedef struct {
|
|
|
};
|
|
};
|
|
|
uint16_t TRN;
|
|
uint16_t TRN;
|
|
|
} reg_pipetre_t;
|
|
} reg_pipetre_t;
|
|
|
-TU_ATTR_BIT_FIELD_ORDER_END
|
|
|
|
|
|
|
|
|
|
-TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
|
|
|
|
typedef union {
|
|
typedef union {
|
|
|
struct {
|
|
struct {
|
|
|
volatile uint16_t u8: 8;
|
|
volatile uint16_t u8: 8;
|
|
@@ -118,11 +119,7 @@ typedef union {
|
|
|
};
|
|
};
|
|
|
volatile uint16_t u16;
|
|
volatile uint16_t u16;
|
|
|
} hw_fifo_t;
|
|
} hw_fifo_t;
|
|
|
-TU_ATTR_BIT_FIELD_ORDER_END
|
|
|
|
|
|
|
|
|
|
-TU_ATTR_PACKED_BEGIN // Start of definition of packed structs (used by the CCRX toolchain)
|
|
|
|
|
-
|
|
|
|
|
-TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
|
|
|
|
typedef struct TU_ATTR_PACKED
|
|
typedef struct TU_ATTR_PACKED
|
|
|
{
|
|
{
|
|
|
uintptr_t addr; /* the start address of a transfer data buffer */
|
|
uintptr_t addr; /* the start address of a transfer data buffer */
|
|
@@ -133,9 +130,9 @@ typedef struct TU_ATTR_PACKED
|
|
|
uint32_t : 0;
|
|
uint32_t : 0;
|
|
|
};
|
|
};
|
|
|
} pipe_state_t;
|
|
} pipe_state_t;
|
|
|
-TU_ATTR_BIT_FIELD_ORDER_END
|
|
|
|
|
|
|
|
|
|
TU_ATTR_PACKED_END // End of definition of packed structs (used by the CCRX toolchain)
|
|
TU_ATTR_PACKED_END // End of definition of packed structs (used by the CCRX toolchain)
|
|
|
|
|
+TU_ATTR_BIT_FIELD_ORDER_END
|
|
|
|
|
|
|
|
typedef struct
|
|
typedef struct
|
|
|
{
|
|
{
|
|
@@ -147,7 +144,7 @@ typedef struct
|
|
|
//--------------------------------------------------------------------+
|
|
//--------------------------------------------------------------------+
|
|
|
// INTERNAL OBJECT & FUNCTION DECLARATION
|
|
// INTERNAL OBJECT & FUNCTION DECLARATION
|
|
|
//--------------------------------------------------------------------+
|
|
//--------------------------------------------------------------------+
|
|
|
-CFG_TUSB_MEM_SECTION static dcd_data_t _dcd;
|
|
|
|
|
|
|
+static dcd_data_t _dcd;
|
|
|
|
|
|
|
|
static uint32_t disable_interrupt(void)
|
|
static uint32_t disable_interrupt(void)
|
|
|
{
|
|
{
|