mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(esp_hw_support): fix usj pad config bad retention
Closes https://github.com/espressif/esp-idf/issues/15797
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@ -26,9 +26,11 @@ void sleep_console_usj_pad_backup_and_disable(void)
|
|||||||
// Enable USJ clock and clear reset
|
// Enable USJ clock and clear reset
|
||||||
usb_serial_jtag_ll_enable_bus_clock(true);
|
usb_serial_jtag_ll_enable_bus_clock(true);
|
||||||
usb_serial_jtag_ll_reset_register();
|
usb_serial_jtag_ll_reset_register();
|
||||||
|
usb_serial_jtag_ll_phy_enable_pad(false);
|
||||||
|
s_usj_state.usj_pad_enabled = false;
|
||||||
|
} else {
|
||||||
|
s_usj_state.usj_pad_enabled = usb_serial_jtag_ll_phy_is_pad_enabled();
|
||||||
}
|
}
|
||||||
s_usj_state.usj_pad_enabled = usb_serial_jtag_ll_phy_is_pad_enabled();
|
|
||||||
usb_serial_jtag_ll_phy_enable_pad(false);
|
|
||||||
// Disable USJ clock
|
// Disable USJ clock
|
||||||
usb_serial_jtag_ll_enable_bus_clock(false);
|
usb_serial_jtag_ll_enable_bus_clock(false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user