File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -234,8 +234,7 @@ uint32_t hcd_frame_number(uint8_t rhport)
234
234
//--------------------------------------------------------------------+
235
235
void hcd_port_reset (uint8_t hostid )
236
236
{
237
- (void ) hostid ;
238
- OHCI_REG -> rhport_status [0 ] = RHPORT_PORT_RESET_STATUS_MASK ;
237
+ OHCI_REG -> rhport_status [hostid ] = RHPORT_PORT_RESET_STATUS_MASK ;
239
238
}
240
239
241
240
void hcd_port_reset_end (uint8_t rhport )
@@ -245,14 +244,12 @@ void hcd_port_reset_end(uint8_t rhport)
245
244
246
245
bool hcd_port_connect_status (uint8_t hostid )
247
246
{
248
- (void ) hostid ;
249
- return OHCI_REG -> rhport_status_bit [0 ].current_connect_status ;
247
+ return OHCI_REG -> rhport_status_bit [hostid ].current_connect_status ;
250
248
}
251
249
252
250
tusb_speed_t hcd_port_speed_get (uint8_t hostid )
253
251
{
254
- (void ) hostid ;
255
- return OHCI_REG -> rhport_status_bit [0 ].low_speed_device_attached ? TUSB_SPEED_LOW : TUSB_SPEED_FULL ;
252
+ return OHCI_REG -> rhport_status_bit [hostid ].low_speed_device_attached ? TUSB_SPEED_LOW : TUSB_SPEED_FULL ;
256
253
}
257
254
258
255
// endpoints are tied to an address, which only reclaim after a long delay when enumerating
You can’t perform that action at this time.
0 commit comments