Abuse the the C preprocessor so that the HID macros can automatically encode data...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 17 Jan 2011 19:44:48 +0000 (19:44 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 17 Jan 2011 19:44:48 +0000 (19:44 +0000)
commitefd57cfe51ec0501d4378d01e019f3e23b989274
treee2e60d4ba5a72c56012b2a6426849e28d762c53e
parent47fec03694c933a388eadf3242a6e40177b57d74
Abuse the the C preprocessor so that the HID macros can automatically encode data into the array from the HID macros automagically, by specifying the bit-width of the data, and the data itself as a single integer value of that width.
16 files changed:
Demos/Device/ClassDriver/GenericHID/Descriptors.c
Demos/Device/ClassDriver/Joystick/Descriptors.c
Demos/Device/ClassDriver/Keyboard/Descriptors.c
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
Demos/Device/ClassDriver/Mouse/Descriptors.c
Demos/Device/ClassDriver/VirtualSerialMouse/Descriptors.c
Demos/Device/LowLevel/GenericHID/Descriptors.c
Demos/Device/LowLevel/Joystick/Descriptors.c
Demos/Device/LowLevel/Keyboard/Descriptors.c
Demos/Device/LowLevel/KeyboardMouse/Descriptors.c
Demos/Device/LowLevel/Mouse/Descriptors.c
Demos/DualRole/ClassDriver/MouseHostDevice/Descriptors.c
LUFA/Drivers/USB/Class/Common/HIDReportData.h
Projects/Magstripe/Descriptors.c
Projects/TempDataLogger/Descriptors.c