host msc built but got hardfault with inquiry command

This commit is contained in:
hathach
2018-12-10 22:06:48 +07:00
parent dffe9b335e
commit 9c3c782b64
6 changed files with 68 additions and 59 deletions

View File

@@ -458,8 +458,8 @@ typedef struct
// Note control qhd of dev0 is used as head of async list, always exists
struct {
ehci_qhd_t qhd;
ehci_qtd_t qtd;
ehci_qhd_t qhd;
ehci_qtd_t qtd;
}control[CFG_TUSB_HOST_DEVICE_MAX+1];
struct {

View File

@@ -81,7 +81,7 @@ static host_class_driver_t const usbh_class_drivers[] =
{
.class_code = TUSB_CLASS_MSC,
.init = msch_init,
.open_subtask = msch_open_subtask,
.open_subtask = msch_open,
.isr = msch_isr,
.close = msch_close
},