[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

@@ -117,8 +117,8 @@ static status_t bulktest_usb_cb(void *cookie, usb_callback_op_t op, const union
LTRACEF("cookie %p, op %u, args %p\n", cookie, op, args);
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);
queue_rx();
queue_tx();