diff options
| author | hathach <[email protected]> | 2018-12-10 22:06:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-10 22:11:02 +0700 |
| commit | 9c3c782b64d196daf97d12732611fb5e16c80008 (patch) | |
| tree | 6c68e6d5c29c78fce1c08b84e38667d2baef2bb9 /src/host | |
| parent | dffe9b335ee38a7720adff9a819f17b2899e38d1 (diff) | |
host msc built but got hardfault with inquiry command
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/ehci/ehci.h | 4 | ||||
| -rw-r--r-- | src/host/usbh.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/host/ehci/ehci.h b/src/host/ehci/ehci.h index fdb1936d3..8db923edf 100644 --- a/src/host/ehci/ehci.h +++ b/src/host/ehci/ehci.h @@ -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 { diff --git a/src/host/usbh.c b/src/host/usbh.c index 1c698cb35..9fe16e5d1 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -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
},
|
