Number endpoints according to the order of their related interfaces.

This commit is contained in:
László Monda
2016-03-10 14:35:05 +01:00
parent e4a23e2dab
commit 5eca5e58fb
3 changed files with 4 additions and 4 deletions

View File

@@ -10,8 +10,8 @@
#define USB_GENERIC_HID_INTERFACE_INDEX 0
#define USB_GENERIC_HID_ENDPOINT_IN_INDEX 3
#define USB_GENERIC_HID_ENDPOINT_OUT_INDEX 4
#define USB_GENERIC_HID_ENDPOINT_IN_INDEX 1
#define USB_GENERIC_HID_ENDPOINT_OUT_INDEX 2
#define USB_GENERIC_HID_ENDPOINT_COUNT 2
#define USB_GENERIC_HID_INTERRUPT_IN_PACKET_SIZE 64

View File

@@ -10,7 +10,7 @@
#define USB_KEYBOARD_INTERFACE_INDEX 1
#define USB_KEYBOARD_ENDPOINT_INDEX 2
#define USB_KEYBOARD_ENDPOINT_INDEX 3
#define USB_KEYBOARD_ENDPOINT_COUNT 1
#define USB_KEYBOARD_INTERRUPT_IN_PACKET_SIZE 8

View File

@@ -10,7 +10,7 @@
#define USB_MOUSE_INTERFACE_INDEX 2
#define USB_MOUSE_ENDPOINT_INDEX 1
#define USB_MOUSE_ENDPOINT_INDEX 4
#define USB_MOUSE_ENDPOINT_COUNT 1
#define USB_MOUSE_INTERRUPT_IN_PACKET_SIZE 8