diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-30 20:52:00 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-02 11:59:23 +0200 |
commit | cabae13e55b8e6de88a3aee452a66a1e2a8c352b (patch) | |
tree | dd5bd4c74d1fe64b3ba1d5412c1d3edb2eba823e /cores/arduino/USBDesc.h | |
parent | e42d7d6221e175e087196f946ae139ca236f4e46 (diff) |
[PUSB] Fixed the correct number of endpoints
Diffstat (limited to 'cores/arduino/USBDesc.h')
-rw-r--r-- | cores/arduino/USBDesc.h | 5 |
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 |