From 2dce6f43a8d8a76f11e2e22c4e081ea51201c2c5 Mon Sep 17 00:00:00 2001 From: gperson Date: Tue, 8 Dec 2020 12:26:34 +0100 Subject: [PATCH] on ajoute des commentaires pour expliquer la suite dans les descriptors --- src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c | 10 +++++----- src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c b/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c index 961c14a..a9b427f 100644 --- a/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c +++ b/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c @@ -140,29 +140,29 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .EndpointSize = JOYSTICK_EPSIZE, .PollingIntervalMS = 0x05 } -/* .HID_Interface1 = + .HID_Interface1 = { .Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface}, - .InterfaceNumber = INTERFACE_ID_Joystick, + .InterfaceNumber = INTERFACE_ID_Joystick, // donner un id dans le .h, ya un ex .AlternateSetting = 0x00, .TotalEndpoints = 1, - .Class = HID_CSCP_HIDClass, + .Class = HID_CSCP_HIDClass, // ya un truc a changer avec un usb_truc, on trouve dans la bibli lufa dans la doc .SubClass = HID_CSCP_NonBootSubclass, .Protocol = HID_CSCP_NonBootProtocol, .InterfaceStrIndex = NO_DESCRIPTOR }, - .HID_ReportOUTEndpoint1 = +/* .HID_ReportOUTEndpoint1 = { .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, .EndpointAddress = JOYSTICK_EPADDR, .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), - .EndpointSize = JOYSTICK_EPSIZE, + .EndpointSize = JOYSTICK_EPSIZE, // a definir dansd le .h .PollingIntervalMS = 0x05 }, diff --git a/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h b/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h index 468642c..bdce5fa 100644 --- a/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h +++ b/src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h @@ -54,7 +54,7 @@ USB_Descriptor_Interface_t HID_Interface; USB_HID_Descriptor_HID_t HID_JoystickHID; USB_Descriptor_Endpoint_t HID_ReportINEndpoint; - // HID_Interface1;HID_ReportOUTEndpoint1; + USB_Descriptor_Interface_t// HID_Interface1;//HID_ReportOUTEndpoint1; // HID_Interface2;HID_ReportOUTEndpoint2; } USB_Descriptor_Configuration_t; -- libgit2 0.21.2