diff options
| author | hathach <[email protected]> | 2013-05-06 20:09:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-06 20:09:06 +0700 |
| commit | fd49cff8e86608cd79e44d8d257e184b95c7dbdd (patch) | |
| tree | 63afb0f543ccdd846876fded192331d5fb1c770c /tinyusb/host/usbh.c | |
| parent | 4fa7f77ee2518cb7f187fb6caa85688836b385c4 (diff) | |
add stub for msc host & hub driver
Diffstat (limited to 'tinyusb/host/usbh.c')
| -rw-r--r-- | tinyusb/host/usbh.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 2dd56110a..cda5418ff 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -66,19 +66,28 @@ static host_class_driver_t const usbh_class_drivers[TUSB_CLASS_MAX_CONSEC_NUMBER { #if HOST_CLASS_HID [TUSB_CLASS_HID] = { - .init = hidh_init, + .init = hidh_init, .open_subtask = hidh_open_subtask, - .isr = hidh_isr, - .close = hidh_close + .isr = hidh_isr, + .close = hidh_close }, #endif -#if TUSB_CFG_HOST_CLASS_MSC +#if TUSB_CFG_HOST_MSC [TUSB_CLASS_MSC] = { - .init = msch_init, + .init = msch_init, .open_subtask = msch_open_subtask, - .isr = msch_isr, - .close = msch_close + .isr = msch_isr, + .close = msch_close + } +#endif + +#if TUSB_CFG_HOST_HUB + [TUSB_CLASS_HUB] = { + .init = hub_init, + .open_subtask = hub_open_subtask, + .isr = hub_isr, + .close = hub_close } #endif |
