From b9bbddd24e6cdb9bc21da64075b0432d69882e22 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 23 Feb 2022 17:35:29 +0100 Subject: [PATCH] Using separate eps. Signed-off-by: Pol Henarejos --- usb_descriptors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usb_descriptors.c b/usb_descriptors.c index 794e138..5a15993 100644 --- a/usb_descriptors.c +++ b/usb_descriptors.c @@ -103,7 +103,7 @@ tusb_desc_configuration_t const desc_config = .bNumInterfaces = 1, .bConfigurationValue = 1, .iConfiguration = 4, - .bmAttributes = USB_CONFIG_ATT_ONE | TUSB_DESC_CONFIG_ATT_SELF_POWERED, + .bmAttributes = USB_CONFIG_ATT_ONE | TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, .bMaxPower = TUSB_DESC_CONFIG_POWER_MA(MAX_USB_POWER+1), }; @@ -121,7 +121,7 @@ tusb_desc_endpoint_t const desc_ep2 = { .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_ENDPOINT, - .bEndpointAddress = 1, + .bEndpointAddress = 2, .bmAttributes.xfer = TUSB_XFER_BULK, .wMaxPacketSize.size = (64), .bInterval = 0