aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBDesc.h
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/USBDesc.h')
-rw-r--r--cores/arduino/USBDesc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cores/arduino/USBDesc.h b/cores/arduino/USBDesc.h
index 1962727..528a7fd 100644
--- a/cores/arduino/USBDesc.h
+++ b/cores/arduino/USBDesc.h
@@ -18,6 +18,11 @@
#define PLUGGABLE_USB_ENABLED
+#if defined(EPRST6)
+#define USB_ENDPOINTS 7 // AtMegaxxU4
+#else
+#define USB_ENDPOINTS 5 // AtMegaxxU2
+#endif
#define CDC_INTERFACE_COUNT 2
#define CDC_ENPOINT_COUNT 3