summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-07-08 19:47:24 +0700
committerGitHub <[email protected]>2020-07-08 19:47:24 +0700
commitdbced9911d67fb2063b6eff9e51d463b9062687a (patch)
tree224b6dbe4455e72227174a07c8755acfb4ae3838 /src/class
parent0c9932440b794fbdc699df6f0601f6febddedfe5 (diff)
parent0fd074afd85d84f162ddebbc9b8e009f9136809b (diff)
Merge pull request #447 from hathach/add-stm-hs
Add support for STM32 OTG HS core
Diffstat (limited to 'src/class')
-rw-r--r--src/class/net/net_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h
index fb72146b0..0175ea56b 100644
--- a/src/class/net/net_device.h
+++ b/src/class/net/net_device.h
@@ -37,7 +37,7 @@
#include "netif/ethernet.h"
/* declared here, NOT in usb_descriptors.c, so that the driver can intelligently ZLP as needed */
-#define CFG_TUD_NET_ENDPOINT_SIZE ((CFG_TUSB_RHPORT0_MODE & OPT_MODE_HIGH_SPEED) ? 512 : 64)
+#define CFG_TUD_NET_ENDPOINT_SIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
/* Maximum Tranmission Unit (in bytes) of the network, including Ethernet header */
#define CFG_TUD_NET_MTU (1500 + SIZEOF_ETH_HDR)