mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Fix USB CLK always reset and USB with swapped pins not working
This commit is contained in:
@@ -233,7 +233,6 @@ void esp_perip_clk_init(void)
|
|||||||
#if CONFIG_ESP_CONSOLE_UART_NUM != 1
|
#if CONFIG_ESP_CONSOLE_UART_NUM != 1
|
||||||
DPORT_UART1_CLK_EN |
|
DPORT_UART1_CLK_EN |
|
||||||
#endif
|
#endif
|
||||||
DPORT_USB_CLK_EN |
|
|
||||||
DPORT_SPI2_CLK_EN |
|
DPORT_SPI2_CLK_EN |
|
||||||
DPORT_I2C_EXT0_CLK_EN |
|
DPORT_I2C_EXT0_CLK_EN |
|
||||||
DPORT_UHCI0_CLK_EN |
|
DPORT_UHCI0_CLK_EN |
|
||||||
|
@@ -22,6 +22,5 @@ void usb_hal_init(usb_hal_context_t *usb)
|
|||||||
usb_ll_ext_phy_enable();
|
usb_ll_ext_phy_enable();
|
||||||
} else {
|
} else {
|
||||||
usb_ll_int_phy_enable();
|
usb_ll_int_phy_enable();
|
||||||
usb_ll_int_phy_pullup_conf(true, false, false, false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user