@@ -154,15 +154,12 @@ typedef struct TU_ATTR_ALIGNED(32)
154154
155155TU_VERIFY_STATIC ( sizeof (ochi_itd_t ) == 32 , "size is not correct" );
156156
157- typedef struct
158- {
159- uint16_t expected_bytes : 13 ; // can be up to 8192 bytes long so use 13 bits
160- uint16_t : 3 ; // can be used
157+ typedef struct {
158+ uint16_t expected_bytes ; // up to 8192 bytes so max is 13 bits
161159} gtd_extra_data_t ;
162160
163161// structure with member alignment required from large to small
164- typedef struct TU_ATTR_ALIGNED (256 )
165- {
162+ typedef struct TU_ATTR_ALIGNED (256 ) {
166163 ohci_hcca_t hcca ;
167164
168165 ohci_ed_t bulk_head_ed ; // static bulk head (dummy)
@@ -172,16 +169,17 @@ typedef struct TU_ATTR_ALIGNED(256)
172169 struct {
173170 ohci_ed_t ed ;
174171 ohci_gtd_t gtd ;
175- gtd_extra_data_t gtd_data ;
176- }control [CFG_TUH_DEVICE_MAX + CFG_TUH_HUB + 1 ];
172+ } control [CFG_TUH_DEVICE_MAX + CFG_TUH_HUB + 1 ];
177173
178174 // ochi_itd_t itd[OHCI_MAX_ITD]; // itd requires alignment of 32
179175 ohci_ed_t ed_pool [ED_MAX ];
180176 ohci_gtd_t gtd_pool [GTD_MAX ];
181- gtd_extra_data_t gtd_data [GTD_MAX ]; // extra data needed by TDs that can't fit in the TD struct
182177
183- volatile uint16_t frame_number_hi ;
178+ // extra data needed by TDs that can't fit in the TD struct
179+ gtd_extra_data_t gtd_extra_control [CFG_TUH_DEVICE_MAX + CFG_TUH_HUB + 1 ];
180+ gtd_extra_data_t gtd_extra [GTD_MAX ];
184181
182+ volatile uint16_t frame_number_hi ;
185183} ohci_data_t ;
186184
187185//--------------------------------------------------------------------+
0 commit comments