mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
usb_serial_jtag: can print when wifi enabled by default
Closes https://github.com/espressif/esp-idf/issues/8131
This commit is contained in:
@@ -415,10 +415,11 @@ menu "PHY"
|
|||||||
|
|
||||||
config ESP_PHY_ENABLE_USB
|
config ESP_PHY_ENABLE_USB
|
||||||
bool "Enable USB when phy init"
|
bool "Enable USB when phy init"
|
||||||
depends on ESP_CONSOLE_USB_SERIAL_JTAG
|
depends on USB_OTG_SUPPORTED || ESP_CONSOLE_USB_SERIAL_JTAG || ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
|
||||||
default y
|
default y if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
||||||
|
default n
|
||||||
help
|
help
|
||||||
When using USB Serial/JTAG controller, PHY should enable USB, otherwise log will
|
When using USB Serial/JTAG/OTG/CDC, PHY should enable USB, otherwise USB module
|
||||||
not be displayed. But working with USB, the RF performance may be affected.
|
can not work properly. Notice: Enabling this configuration option will slightly impact wifi performance.
|
||||||
|
|
||||||
endmenu # PHY
|
endmenu # PHY
|
||||||
|
@@ -613,7 +613,13 @@ void esp_phy_load_cal_and_init(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_ESP_PHY_ENABLE_USB
|
#if CONFIG_ESP_PHY_ENABLE_USB
|
||||||
|
#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG || CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
|
||||||
|
if (usb_serial_jtag_ll_txfifo_writable() == 1)
|
||||||
|
#endif // Only check usb_jtag status with usb_jtag related config options enabled.
|
||||||
|
{
|
||||||
|
// If the USB_SEIRAL_JTAG is really in use.
|
||||||
phy_bbpll_en_usb(true);
|
phy_bbpll_en_usb(true);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
|
#ifdef CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||||
|
Reference in New Issue
Block a user