File tree Expand file tree Collapse file tree
ports/atmel-samd/common-hal/usb_hid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ typedef struct {
4545
4646} usb_hid_device_obj_t ;
4747
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 ];
4949
5050void usb_hid_init (void );
5151void usb_hid_reset (void );
Original file line number Diff line number Diff line change 3535#include "genhdr/autogen_usb_descriptor.h"
3636
3737// 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
3939static uint8_t keyboard_report_buffer [USB_HID_REPORT_LENGTH_KEYBOARD + 1 ];
4040#endif
4141#ifdef USB_HID_REPORT_ID_MOUSE
@@ -55,7 +55,7 @@ static uint8_t digitizer_report_buffer[USB_HID_REPORT_LENGTH_DIGITIZER + 1];
5555#endif
5656
5757usb_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
5959 {
6060 .base = { .type = & usb_hid_device_type },
6161 .report_buffer = keyboard_report_buffer ,
You can’t perform that action at this time.
0 commit comments