From ed7dfa140a211bf9f36529bd33da159cda762ea4 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 23 Oct 2021 19:08:36 +0900 Subject: [PATCH] lufa: Remove OUT endpoint of debug console - OUT ep has not been used. No support for input from host. - Debug console uses only IN ep to display debug prints. --- tmk_core/protocol/lufa/descriptor.c | 5 ++++- tmk_core/protocol/lufa/descriptor.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tmk_core/protocol/lufa/descriptor.c b/tmk_core/protocol/lufa/descriptor.c index f365222d..f4aa08b1 100644 --- a/tmk_core/protocol/lufa/descriptor.c +++ b/tmk_core/protocol/lufa/descriptor.c @@ -430,7 +430,8 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .InterfaceNumber = CONSOLE_INTERFACE, .AlternateSetting = 0x00, - .TotalEndpoints = 2, + //.TotalEndpoints = 2, + .TotalEndpoints = 1, .Class = HID_CSCP_HIDClass, .SubClass = HID_CSCP_NonBootSubclass, @@ -460,6 +461,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .PollingIntervalMS = 0x01 }, +/* .Console_OUTEndpoint = { .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, @@ -469,6 +471,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .EndpointSize = CONSOLE_EPSIZE, .PollingIntervalMS = 0x01 }, +*/ #endif /* diff --git a/tmk_core/protocol/lufa/descriptor.h b/tmk_core/protocol/lufa/descriptor.h index 4bba0cc0..39bb3fe7 100644 --- a/tmk_core/protocol/lufa/descriptor.h +++ b/tmk_core/protocol/lufa/descriptor.h @@ -71,7 +71,7 @@ typedef struct USB_Descriptor_Interface_t Console_Interface; USB_HID_Descriptor_HID_t Console_HID; USB_Descriptor_Endpoint_t Console_INEndpoint; - USB_Descriptor_Endpoint_t Console_OUTEndpoint; +// USB_Descriptor_Endpoint_t Console_OUTEndpoint; #endif #if !defined(NO_KEYBOARD) && defined(NKRO_6KRO_ENABLE)