Commit 2dce6f43a8d8a76f11e2e22c4e081ea51201c2c5
1 parent
fbd84158
on ajoute des commentaires pour expliquer la suite dans les descriptors
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.c
@@ -140,29 +140,29 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = | @@ -140,29 +140,29 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = | ||
140 | .EndpointSize = JOYSTICK_EPSIZE, | 140 | .EndpointSize = JOYSTICK_EPSIZE, |
141 | .PollingIntervalMS = 0x05 | 141 | .PollingIntervalMS = 0x05 |
142 | } | 142 | } |
143 | -/* .HID_Interface1 = | 143 | + .HID_Interface1 = |
144 | { | 144 | { |
145 | .Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface}, | 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 | .AlternateSetting = 0x00, | 148 | .AlternateSetting = 0x00, |
149 | 149 | ||
150 | .TotalEndpoints = 1, | 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 | .SubClass = HID_CSCP_NonBootSubclass, | 153 | .SubClass = HID_CSCP_NonBootSubclass, |
154 | .Protocol = HID_CSCP_NonBootProtocol, | 154 | .Protocol = HID_CSCP_NonBootProtocol, |
155 | 155 | ||
156 | .InterfaceStrIndex = NO_DESCRIPTOR | 156 | .InterfaceStrIndex = NO_DESCRIPTOR |
157 | }, | 157 | }, |
158 | 158 | ||
159 | - .HID_ReportOUTEndpoint1 = | 159 | +/* .HID_ReportOUTEndpoint1 = |
160 | { | 160 | { |
161 | .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, | 161 | .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, |
162 | 162 | ||
163 | .EndpointAddress = JOYSTICK_EPADDR, | 163 | .EndpointAddress = JOYSTICK_EPADDR, |
164 | .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), | 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 | .PollingIntervalMS = 0x05 | 166 | .PollingIntervalMS = 0x05 |
167 | 167 | ||
168 | }, | 168 | }, |
src/lufa-LUFA-170418/PolytechLille/Manette/Descriptors.h
@@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
54 | USB_Descriptor_Interface_t HID_Interface; | 54 | USB_Descriptor_Interface_t HID_Interface; |
55 | USB_HID_Descriptor_HID_t HID_JoystickHID; | 55 | USB_HID_Descriptor_HID_t HID_JoystickHID; |
56 | USB_Descriptor_Endpoint_t HID_ReportINEndpoint; | 56 | USB_Descriptor_Endpoint_t HID_ReportINEndpoint; |
57 | - // HID_Interface1;HID_ReportOUTEndpoint1; | 57 | + USB_Descriptor_Interface_t// HID_Interface1;//HID_ReportOUTEndpoint1; |
58 | // HID_Interface2;HID_ReportOUTEndpoint2; | 58 | // HID_Interface2;HID_ReportOUTEndpoint2; |
59 | } USB_Descriptor_Configuration_t; | 59 | } USB_Descriptor_Configuration_t; |
60 | 60 |