Skip to content

Commit f83e0ce

Browse files
committed
only enable CFG_TUD_ENABLED with esp wgen CONFIG_USB_OTG_SUPPORTED = 1. Add feather_esp32_v2 to ci pool
1 parent 76a551b commit f83e0ce

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/githubci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
matrix:
4949
arduino-platform:
5050
# ESP32 ci use dev json
51+
- 'feather_esp32_v2'
5152
- 'feather_esp32s2'
5253
- 'feather_esp32s3'
5354
- 'esp32p4'

src/arduino/ports/esp32/tusb_config_esp32.h

+5
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,13 @@ extern "C" {
9999

100100
//--------------------------------------------------------------------
101101
// DEVICE CONFIGURATION
102+
// only enabled if USB OTG is supported
102103
//--------------------------------------------------------------------
104+
#if defined(CONFIG_USB_OTG_SUPPORTED) && CONFIG_USB_OTG_SUPPORTED
103105
#define CFG_TUD_ENABLED 1
106+
#else
107+
#define CFG_TUD_ENABLED 0
108+
#endif
104109

105110
#define CFG_TUD_CDC 2
106111
#define CFG_TUD_MSC 1

0 commit comments

Comments
 (0)