Fix USB CLK always reset and USB with swapped pins not working

This commit is contained in:
me-no-dev 2020-08-21 01:44:11 +03:00
parent dde6222cdc
commit 0aa1c13027
2 changed files with 0 additions and 2 deletions

View File

@ -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 |

View File

@ -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);
}
}