[usb] Allow client code to specify USB endpoint type.

This commit is contained in:
Gurjant Kalsi
2016-03-28 12:36:07 -07:00
parent 44e74f0486
commit 1fa7f2c977
5 changed files with 16 additions and 8 deletions

View File

@@ -305,8 +305,8 @@ static status_t usb_register_cb(
)
{
if (op == USB_CB_ONLINE) {
usbc_setup_endpoint(1, USB_IN, 0x40);
usbc_setup_endpoint(1, USB_OUT, 0x40);
usbc_setup_endpoint(1, USB_IN, 0x40, USB_BULK);
usbc_setup_endpoint(1, USB_OUT, 0x40, USB_BULK);
usb_online = true;
}
return NO_ERROR;