From 4f49fc817c4362a372ef473a9192b08c01665131 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 7 Mar 2023 11:29:39 +0100 Subject: [PATCH] usbus/cdc/ecm: increase EP data size in HS mode CDC ECM driver/netdev is only working in High-Speed mode if the EP data size is at least 512 byte. --- sys/include/usb/usbus/cdc/ecm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/include/usb/usbus/cdc/ecm.h b/sys/include/usb/usbus/cdc/ecm.h index f117a32271..40b46f785f 100644 --- a/sys/include/usb/usbus/cdc/ecm.h +++ b/sys/include/usb/usbus/cdc/ecm.h @@ -75,7 +75,11 @@ extern "C" { * * Used for the transfer of network frames. */ +#ifndef MODULE_PERIPH_USBDEV_HS #define USBUS_CDCECM_EP_DATA_SIZE 64 +#else +#define USBUS_CDCECM_EP_DATA_SIZE 512 +#endif /** * @brief notification state, used to track which information must be send to