Extract USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS_PADDING

This commit is contained in:
László Monda
2016-03-02 11:45:05 +01:00
parent 85a3680fdc
commit 8acff8aaf7
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -11,6 +11,9 @@
#define USB_MOUSE_REPORT_DESCRIPTOR_MAX_AXIS_PHYSICAL_VALUE 4096
#define USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS 8
#define USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS_PADDING ((USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS % 8) \
? (8 - (USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS % 8)) \
: 0)
// Variables:
extern uint8_t UsbMouseReportDescriptor[USB_MOUSE_REPORT_DESCRIPTOR_LENGTH];