Commit 2dce6f43a8d8a76f11e2e22c4e081ea51201c2c5

Authored by gperson
1 parent fbd84158

on ajoute des commentaires pour expliquer la suite dans les descriptors

src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c
... ... @@ -140,29 +140,29 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
140 140 .EndpointSize = JOYSTICK_EPSIZE,
141 141 .PollingIntervalMS = 0x05
142 142 }
143   -/* .HID_Interface1 =
  143 + .HID_Interface1 =
144 144 {
145 145 .Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
146 146  
147   - .InterfaceNumber = INTERFACE_ID_Joystick,
  147 + .InterfaceNumber = INTERFACE_ID_Joystick, // donner un id dans le .h, ya un ex
148 148 .AlternateSetting = 0x00,
149 149  
150 150 .TotalEndpoints = 1,
151 151  
152   - .Class = HID_CSCP_HIDClass,
  152 + .Class = HID_CSCP_HIDClass, // ya un truc a changer avec un usb_truc, on trouve dans la bibli lufa dans la doc
153 153 .SubClass = HID_CSCP_NonBootSubclass,
154 154 .Protocol = HID_CSCP_NonBootProtocol,
155 155  
156 156 .InterfaceStrIndex = NO_DESCRIPTOR
157 157 },
158 158  
159   - .HID_ReportOUTEndpoint1 =
  159 +/* .HID_ReportOUTEndpoint1 =
160 160 {
161 161 .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint},
162 162  
163 163 .EndpointAddress = JOYSTICK_EPADDR,
164 164 .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
165   - .EndpointSize = JOYSTICK_EPSIZE,
  165 + .EndpointSize = JOYSTICK_EPSIZE, // a definir dansd le .h
166 166 .PollingIntervalMS = 0x05
167 167  
168 168 },
... ...
src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h
... ... @@ -54,7 +54,7 @@
54 54 USB_Descriptor_Interface_t HID_Interface;
55 55 USB_HID_Descriptor_HID_t HID_JoystickHID;
56 56 USB_Descriptor_Endpoint_t HID_ReportINEndpoint;
57   - // HID_Interface1;HID_ReportOUTEndpoint1;
  57 + USB_Descriptor_Interface_t// HID_Interface1;//HID_ReportOUTEndpoint1;
58 58 // HID_Interface2;HID_ReportOUTEndpoint2;
59 59 } USB_Descriptor_Configuration_t;
60 60  
... ...