refactor usb device intf and ep register
This commit is contained in:
@@ -70,13 +70,4 @@ static void hub_notify_handler(uint8_t event, void *arg)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void usbd_hub_add_interface(usbd_class_t *devclass, usbd_interface_t *intf)
|
||||
{
|
||||
intf->class_handler = NULL;
|
||||
intf->custom_handler = hub_custom_request_handler;
|
||||
intf->vendor_handler = NULL;
|
||||
intf->notify_handler = hub_notify_handler;
|
||||
usbd_class_add_interface(devclass, intf);
|
||||
}
|
||||
}
|
||||
@@ -12,8 +12,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void usbd_hub_add_interface(usbd_class_t *devclass, usbd_interface_t *intf);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user