mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: fix SDK configuration for USB PHY
When using USB Serial/JTAG/OTG/CDC, USB should be enabled in `phy_init`, otherwise USB interface is not working properly.
This commit is contained in:
parent
6cf2116ae8
commit
8b34d547ac
@ -94,6 +94,11 @@ extern "C" {
|
||||
#define CONFIG_ESP_SLEEP_POWER_DOWN_FLASH 1
|
||||
#define CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND 1
|
||||
|
||||
/**
|
||||
* ESP32-C3 specific USB configuration
|
||||
*/
|
||||
#define CONFIG_ESP_PHY_ENABLE_USB 1
|
||||
|
||||
/**
|
||||
* ESP32-C3 BLE driver configuration (DO NOT CHANGE)
|
||||
*/
|
||||
|
@ -109,8 +109,8 @@ extern "C" {
|
||||
/**
|
||||
* ESP32-S3 specific USB configuration
|
||||
*/
|
||||
#ifdef MODULE_ESP_IDF_USB
|
||||
#define CONFIG_ESP_PHY_ENABLE_USB 1
|
||||
#ifdef MODULE_ESP_IDF_USB
|
||||
#define CONFIG_USB_OTG_SUPPORTED 1
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user