esp_rom: add USB_OTG "port" number for S2 and S3

This commit is contained in:
Ivan Grokhotkov
2022-05-17 23:43:47 +02:00
parent c7b409aa94
commit 228dbe103f
6 changed files with 14 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ void bootloader_console_init(void)
#endif
esp_rom_uart_usb_acm_init(s_usb_cdc_buf, sizeof(s_usb_cdc_buf));
esp_rom_uart_set_as_console(ESP_ROM_UART_USB);
esp_rom_uart_set_as_console(ESP_ROM_USB_OTG_NUM);
esp_rom_install_channel_putc(1, bootloader_console_write_char_usb);
#if SOC_USB_SERIAL_JTAG_SUPPORTED
usb_phy_ll_usb_wrap_pad_enable(&USB_WRAP, true);