Restructure the codebase across more files.
This commit is contained in:
27
right/usb_class_generic_hid.h
Normal file
27
right/usb_class_generic_hid.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef __USB_CLASS_GENERIC_HID_H__
|
||||
#define __USB_CLASS_GENERIC_HID_H__
|
||||
|
||||
// Macros:
|
||||
|
||||
#define USB_GENERIC_HID_CLASS (0x03U)
|
||||
#define USB_GENERIC_HID_SUBCLASS (0x00U)
|
||||
#define USB_GENERIC_HID_PROTOCOL (0x00U)
|
||||
|
||||
#define USB_GENERIC_HID_INTERFACE_INDEX (2U)
|
||||
#define USB_GENERIC_HID_INTERFACE_COUNT (1U)
|
||||
#define USB_GENERIC_HID_INTERFACE_ALTERNATE_SETTING (0U)
|
||||
|
||||
#define USB_GENERIC_HID_ENDPOINT_IN_ID (3U)
|
||||
#define USB_GENERIC_HID_ENDPOINT_OUT_ID (4U)
|
||||
#define USB_GENERIC_HID_ENDPOINT_COUNT (2U)
|
||||
|
||||
#define USB_GENERIC_HID_INTERRUPT_IN_PACKET_SIZE (64U)
|
||||
#define USB_GENERIC_HID_INTERRUPT_IN_INTERVAL (0x04U)
|
||||
#define USB_GENERIC_HID_INTERRUPT_OUT_PACKET_SIZE (64U)
|
||||
#define USB_GENERIC_HID_INTERRUPT_OUT_INTERVAL (0x04U)
|
||||
|
||||
// Variables:
|
||||
|
||||
extern usb_device_class_struct_t UsbGenericHidClass;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user