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 80c9ef7b89
commit 74fa41f434
6 changed files with 14 additions and 2 deletions

View File

@@ -95,7 +95,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);
}
#endif //CONFIG_ESP_CONSOLE_USB_CDC