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