fix(console): fixed secondary console not working on all chips without VFS

This commit is contained in:
Marius Vikhammer
2025-08-22 09:38:46 +08:00
parent ac1fdc16d3
commit 00f4245160
28 changed files with 161 additions and 42 deletions
@@ -0,0 +1,18 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_system_console.h"
#include "sdkconfig.h"
#include "esp_rom_uart.h"
#include "esp_rom_usb_serial.h"
#include "esp_rom_caps.h"
void esp_system_console_put_char(char c)
{
esp_rom_output_tx_one_char(c);
#if CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG && !ESP_ROM_CONSOLE_OUTPUT_SECONDARY
esp_rom_usb_serial_putc(c);
#endif // CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG && !ESP_ROM_CONSOLE_OUTPUT_SECONDARY
}