Restructure the codebase across more files.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "usb_device_config.h"
|
||||
#include "usb.h"
|
||||
#include "usb_device.h"
|
||||
#include "include/usb/usb_device_class.h"
|
||||
#include "include/usb/usb_device_hid.h"
|
||||
#include "usb_descriptor_generic_hid_report.h"
|
||||
|
||||
uint8_t UsbGenericHidReportDescriptor[USB_GENERIC_HID_REPORT_DESCRIPTOR_LENGTH] = {
|
||||
0x05U, 0x81U, /* Usage Page (Vendor defined)*/
|
||||
0x09U, 0x82U, /* Usage (Vendor defined) */
|
||||
0xA1U, 0x01U, /* Collection (Application) */
|
||||
0x09U, 0x83U, /* Usage (Vendor defined) */
|
||||
|
||||
0x09U, 0x84U, /* Usage (Vendor defined) */
|
||||
0x15U, 0x80U, /* Logical Minimum (-128) */
|
||||
0x25U, 0x7FU, /* Logical Maximum (127) */
|
||||
0x75U, 0x08U, /* Report Size (8U) */
|
||||
0x95U, 0x08U, /* Report Count (8U) */
|
||||
0x81U, 0x02U, /* Input(Data, Variable, Absolute) */
|
||||
|
||||
0x09U, 0x84U, /* Usage (Vendor defined) */
|
||||
0x15U, 0x80U, /* logical Minimum (-128) */
|
||||
0x25U, 0x7FU, /* logical Maximum (127) */
|
||||
0x75U, 0x08U, /* Report Size (8U) */
|
||||
0x95U, 0x08U, /* Report Count (8U) */
|
||||
0x91U, 0x02U, /* Input (Data, Variable, Absolute) */
|
||||
0xC0U, /* End collection */
|
||||
};
|
||||
Reference in New Issue
Block a user