Merge usb_class_*.[ch] into usb_interface_*.[ch] respectively.
This commit is contained in:
@@ -7,6 +7,20 @@
|
||||
|
||||
// Macros:
|
||||
|
||||
#define USB_KEYBOARD_CLASS (0x03U)
|
||||
#define USB_KEYBOARD_SUBCLASS (0x01U)
|
||||
#define USB_KEYBOARD_PROTOCOL (0x01U)
|
||||
|
||||
#define USB_KEYBOARD_INTERFACE_INDEX (1U)
|
||||
#define USB_KEYBOARD_INTERFACE_COUNT (1U)
|
||||
#define USB_KEYBOARD_INTERFACE_ALTERNATE_SETTING (0U)
|
||||
|
||||
#define USB_KEYBOARD_ENDPOINT_ID (2U)
|
||||
#define USB_KEYBOARD_ENDPOINT_COUNT (1U)
|
||||
|
||||
#define USB_KEYBOARD_INTERRUPT_IN_PACKET_SIZE (8U)
|
||||
#define USB_KEYBOARD_INTERRUPT_IN_INTERVAL (0x04U)
|
||||
|
||||
#define USB_KEYBOARD_REPORT_LENGTH (0x08U)
|
||||
|
||||
// Typedefs:
|
||||
@@ -17,6 +31,9 @@
|
||||
uint8_t scancodes[USB_KEYBOARD_MAX_KEYS];
|
||||
} __attribute__ ((packed)) usb_keyboard_report_t;
|
||||
|
||||
// Variables:
|
||||
extern usb_device_class_struct_t UsbKeyboardClass;
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
|
||||
Reference in New Issue
Block a user