add usbh_hcd to hold common structure/typedef for usbh and hcd

This commit is contained in:
hathach
2013-02-04 13:51:20 +07:00
parent a5b29c5d33
commit 94486f55ec
7 changed files with 136 additions and 52 deletions

View File

@@ -105,7 +105,7 @@ void usbh_enumeration_task(void)
.wLength = 8
};
device_addr0.speed = hcd_port_speed(device_addr0.enum_entry.core_id);
// pipe_handle_t pipe_addr0 = hcd_pipe_addr0_open(&device_addr0);
pipe_handle_t pipe_addr0 = hcd_pipe_addr0_open(&device_addr0);
// hcd_pipe_control_xfer(pipe_addr0, &request_dev_desc)
}else // device connect via a hub