summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-10 15:42:50 +0700
committerhathach <[email protected]>2020-04-10 15:42:50 +0700
commitc545cfc0bc9c4828c4b60515014386f770622166 (patch)
treefd22a4b9beb1c30bd63ec0b28a88fbec9f1646ca /src
parent978eec73b350ae5a52e47036c0dec163172944fa (diff)
Correct dedicated FIFO SRAM size to 1024
add note for up to 5 active IN endpoints (including EP0 IN)
Diffstat (limited to 'src')
-rw-r--r--src/portable/espressif/esp32s2/dcd_esp32s2.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/portable/espressif/esp32s2/dcd_esp32s2.c b/src/portable/espressif/esp32s2/dcd_esp32s2.c
index 26895c204..099f3af3e 100644
--- a/src/portable/espressif/esp32s2/dcd_esp32s2.c
+++ b/src/portable/espressif/esp32s2/dcd_esp32s2.c
@@ -46,9 +46,13 @@
// We disable SOF for now until needed later on
#define USE_SOF 0
-// FIFO size in bytes TODO need confirmation from Espressif
+// Max number of bi-directional endpoints including EP0
+// Note: ESP32S2 specs say there are only up to 5 IN active endpoints include EP0
+// We should probably prohibit enabling Endpoint IN > 4 (not done yet)
#define EP_MAX USB_OUT_EP_NUM
-#define EP_FIFO_SIZE 1280
+
+// FIFO size in bytes
+#define EP_FIFO_SIZE 1024
typedef struct {
uint8_t *buffer;