File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
components/esp_hw_support Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99#include "esp_private/sleep_console.h"
1010#include "esp_attr.h"
1111
12- #if SOC_USB_SERIAL_JTAG_SUPPORTED
12+ #if SOC_USB_SERIAL_JTAG_SUPPORTED && ! SOC_USB_SERIAL_JTAG_SUPPORT_LIGHT_SLEEP
1313#include "hal/usb_serial_jtag_ll.h"
1414
1515static sleep_console_usj_enable_state_t s_usj_state = {0 };
@@ -26,12 +26,12 @@ void sleep_console_usj_pad_backup_and_disable(void)
2626 // Enable USJ clock and clear reset
2727 usb_serial_jtag_ll_enable_bus_clock (true);
2828 usb_serial_jtag_ll_reset_register ();
29- usb_serial_jtag_ll_phy_enable_pad (false);
3029 s_usj_state .usj_pad_enabled = false;
3130 } else {
3231 s_usj_state .usj_pad_enabled = usb_serial_jtag_ll_phy_is_pad_enabled ();
3332 }
34- // Disable USJ clock
33+ // Disable USJ pad & clock
34+ usb_serial_jtag_ll_phy_enable_pad (false);
3535 usb_serial_jtag_ll_enable_bus_clock (false);
3636}
3737
You can’t perform that action at this time.
0 commit comments