1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/esp32: enable tinyUSB package for ESP32-S2 and ESP32-S3

This commit is contained in:
Gunar Schorcht 2022-09-14 09:28:31 +02:00
parent 21b3bcd0c0
commit 8696783853
5 changed files with 13 additions and 3 deletions

View File

@ -24,6 +24,7 @@ config CPU_FAM_ESP32S3
select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH
select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW
select HAS_PUF_SRAM
select HAS_TINYUSB_DEVICE
select PACKAGE_ESP32_SDK if TEST_KCONFIG

View File

@ -167,6 +167,10 @@ ifneq (,$(filter shell,$(USEMODULE)))
USEMODULE += ps
endif
ifneq (,$(filter tinyusb_portable_espressif,$(USEMODULE)))
USEMODULE += esp_idf_usb
endif
ifneq (,$(filter esp_jtag,$(USEMODULE)))
FEATURES_REQUIRED += esp_jtag
endif

View File

@ -14,6 +14,7 @@ config MODULE_ESP_IDF
select MODULE_ESP_IDF_COMMON
select MODULE_ESP_IDF_EFUSE
select MODULE_ESP_IDF_SPI_FLASH if MODULE_MTD
select MODULE_ESP_IDF_USB if MODULE_TINYUSB_PORTABLE_ESPRESSIF
help
Espressif IoT Development Framework.

View File

@ -103,10 +103,12 @@ extern "C" {
#define CONFIG_ESP_SLEEP_RTC_BUS_ISO_WORKAROUND 1
/**
* ESP32-S2 specific PHY configuration
* ESP32-S2 specific USB configuration
*/
#ifdef MODULE_ESP_IDF_USB
#define CONFIG_ESP_PHY_ENABLE_USB 1
#define CONFIG_USB_OTG_SUPPORTED 1
#endif
/**
* ESP32-S2 specific SPI RAM configuration
*/

View File

@ -107,10 +107,12 @@ extern "C" {
#define CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND 1
/**
* ESP32-S3 specific PHY configuration
* ESP32-S3 specific USB configuration
*/
#ifdef MODULE_ESP_IDF_USB
#define CONFIG_ESP_PHY_ENABLE_USB 1
#define CONFIG_USB_OTG_SUPPORTED 1
#endif
/**
* ESP32-S3 specific SPI RAM configuration