aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/GenericHID/GenericHID.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2012-05-10 19:24:58 +0000
committerDean Camera <[email protected]>2012-05-10 19:24:58 +0000
commit359fbfe14d00ab378f85a36664820ea9ba538c3f (patch)
tree0929d5663a3be4dc078dda0aba5ba798ebb627ab /Demos/Device/ClassDriver/GenericHID/GenericHID.c
parente8570c4a37e41117e3fd1e989e0b41f1e9608f3c (diff)
downloadqmk_firmware-359fbfe14d00ab378f85a36664820ea9ba538c3f.tar.gz
qmk_firmware-359fbfe14d00ab378f85a36664820ea9ba538c3f.zip
Add branch for the conversion of demos to use standard C header files for configuration, rather than makefile defined macros.
Diffstat (limited to 'Demos/Device/ClassDriver/GenericHID/GenericHID.c')
-rw-r--r--Demos/Device/ClassDriver/GenericHID/GenericHID.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Demos/Device/ClassDriver/GenericHID/GenericHID.c b/Demos/Device/ClassDriver/GenericHID/GenericHID.c
index 36eb8f7fe3..aa365bde20 100644
--- a/Demos/Device/ClassDriver/GenericHID/GenericHID.c
+++ b/Demos/Device/ClassDriver/GenericHID/GenericHID.c
@@ -48,11 +48,12 @@ USB_ClassInfo_HID_Device_t Generic_HID_Interface =
.Config =
{
.InterfaceNumber = 0,
-
- .ReportINEndpointNumber = GENERIC_IN_EPNUM,
- .ReportINEndpointSize = GENERIC_EPSIZE,
- .ReportINEndpointDoubleBank = false,
-
+ .ReportINEndpoint =
+ {
+ .Address = GENERIC_IN_EPADDR,
+ .Size = GENERIC_EPSIZE,
+ .Banks = 1,
+ },
.PrevReportINBuffer = PrevHIDReportBuffer,
.PrevReportINBufferSize = sizeof(PrevHIDReportBuffer),
},