diff --git a/avr/cores/hid/USB-Core/USBAPI.h b/avr/cores/hid/USB-Core/USBAPI.h index f6ac2f3..fe01567 100644 --- a/avr/cores/hid/USB-Core/USBAPI.h +++ b/avr/cores/hid/USB-Core/USBAPI.h @@ -52,6 +52,13 @@ typedef unsigned long u32; #include "Arduino.h" +// edit by NicoHood +// this definitions is usefull if you want to reduce the EP_SIZE to 16 +// at the moment only 64 and 16 as EP_SIZE for all EPs are supported except the control endpoint +#ifndef USB_EP_SIZE +#define USB_EP_SIZE 64 +#endif + #if defined(USBCON) #include "USBDesc.h" diff --git a/avr/cores/hid/USB-Core/USBDesc.h b/avr/cores/hid/USB-Core/USBDesc.h index a7c3388..d787f3e 100644 --- a/avr/cores/hid/USB-Core/USBDesc.h +++ b/avr/cores/hid/USB-Core/USBDesc.h @@ -79,13 +79,6 @@ THE SOFTWARE. #define HID_TX HID_ENDPOINT_INT #endif -// edit by NicoHood -// this definitions is usefull if you want to reduce the EP_SIZE to 16 -// at the moment only 64 and 16 as EP_SIZE for all EPs are supported except the control endpoint -#ifndef USB_EP_SIZE -#define USB_EP_SIZE 64 -#endif - #define IMANUFACTURER 1 #define IPRODUCT 2