only enable CFG_TUD_ENABLED with esp wgen CONFIG_USB_OTG_SUPPORTED = 1. Add feather_esp32_v2 to ci pool

This commit is contained in:
hathach 2025-03-19 16:54:45 +07:00
parent 76a551be81
commit f83e0ce0ff
No known key found for this signature in database
GPG key ID: 26FAB84F615C3C52
2 changed files with 6 additions and 0 deletions

View file

@ -48,6 +48,7 @@ jobs:
matrix:
arduino-platform:
# ESP32 ci use dev json
- 'feather_esp32_v2'
- 'feather_esp32s2'
- 'feather_esp32s3'
- 'esp32p4'

View file

@ -99,8 +99,13 @@ extern "C" {
//--------------------------------------------------------------------
// DEVICE CONFIGURATION
// only enabled if USB OTG is supported
//--------------------------------------------------------------------
#if defined(CONFIG_USB_OTG_SUPPORTED) && CONFIG_USB_OTG_SUPPORTED
#define CFG_TUD_ENABLED 1
#else
#define CFG_TUD_ENABLED 0
#endif
#define CFG_TUD_CDC 2
#define CFG_TUD_MSC 1