[usb][usbtest] Fix compile error in USB test app (missing parameter).

Endpoint type was added to USBC (interrupt, bulk, isoc, etc) but usbtest app was not updated to reflect this.
This commit is contained in:
Gurjant Kalsi
2016-07-15 14:04:50 -07:00
parent 919a925eca
commit 87b40fda48
2 changed files with 3 additions and 2 deletions

View File

@@ -103,6 +103,6 @@ void usbtest_usb_setup(void)
printf("appending interfaces\n");
usb_append_interface_lowspeed(if_descriptor_lowspeed, sizeof(if_descriptor_lowspeed));
usb_append_interface_highspeed(if_descriptor_lowspeed, sizeof(if_descriptor_lowspeed));
usbc_setup_endpoint(1, USB_OUT, 64);
usbc_setup_endpoint(1, USB_IN, 64);
usbc_setup_endpoint(1, USB_OUT, 64, USB_BULK);
usbc_setup_endpoint(1, USB_IN, 64, USB_BULK);
}

View File

@@ -3,6 +3,7 @@
#include <err.h>
#include <string.h>
#include <stdlib.h>
#include <trace.h>
#include <dev/usb.h>
#include <dev/usbc.h>
#include <kernel/debug.h>