Restructure the codebase across more files.

This commit is contained in:
László Monda
2016-02-29 20:44:53 +01:00
parent 3ddd75db3a
commit ba1aee598d
27 changed files with 494 additions and 328 deletions

24
right/usb_class_mouse.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef __USB_CLASS_MOUSE_H__
#define __USB_CLASS_MOUSE_H__
// Macros:
#define USB_MOUSE_CLASS (0x03U)
#define USB_MOUSE_SUBCLASS (0x01U)
#define USB_MOUSE_PROTOCOL (0x02U)
#define USB_MOUSE_INTERFACE_INDEX (0U)
#define USB_MOUSE_INTERFACE_COUNT (1U)
#define USB_MOUSE_INTERFACE_ALTERNATE_SETTING (0U)
#define USB_MOUSE_ENDPOINT_ID (1U)
#define USB_MOUSE_ENDPOINT_COUNT (1U)
#define USB_MOUSE_INTERRUPT_IN_PACKET_SIZE (8U)
#define USB_MOUSE_INTERRUPT_IN_INTERVAL (0x04U)
// Variables:
extern usb_device_class_struct_t UsbMouseClass;
#endif