Extract USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS_PADDING
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user