File tree 2 files changed +3
-3
lines changed
ports/atmel-samd/common-hal/usb_hid 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ typedef struct {
45
45
46
46
} usb_hid_device_obj_t ;
47
47
48
- usb_hid_device_obj_t usb_hid_devices [USB_HID_NUM_DEVICES ];
48
+ extern usb_hid_device_obj_t usb_hid_devices [USB_HID_NUM_DEVICES ];
49
49
50
50
void usb_hid_init (void );
51
51
void usb_hid_reset (void );
Original file line number Diff line number Diff line change 35
35
#include "genhdr/autogen_usb_descriptor.h"
36
36
37
37
// Buffers are report size + 1 to include the Report ID prefix byte if needed.
38
- #ifdef USB_HID_REPORT_LENGTH_KEYBOARD
38
+ #ifdef USB_HID_REPORT_ID_KEYBOARD
39
39
static uint8_t keyboard_report_buffer [USB_HID_REPORT_LENGTH_KEYBOARD + 1 ];
40
40
#endif
41
41
#ifdef USB_HID_REPORT_ID_MOUSE
@@ -55,7 +55,7 @@ static uint8_t digitizer_report_buffer[USB_HID_REPORT_LENGTH_DIGITIZER + 1];
55
55
#endif
56
56
57
57
usb_hid_device_obj_t usb_hid_devices [USB_HID_NUM_DEVICES ] = {
58
- #ifdef USB_HID_REPORT_LENGTH_KEYBOARD
58
+ #ifdef USB_HID_REPORT_ID_KEYBOARD
59
59
{
60
60
.base = { .type = & usb_hid_device_type },
61
61
.report_buffer = keyboard_report_buffer ,
You can’t perform that action at this time.
0 commit comments