esp_gdbstub: fix build for USB serial/jtag protocol

This commit is contained in:
Alexey Lapshin
2023-04-19 20:23:15 +08:00
parent 9220eea4e4
commit 71cd5cb2a1

View File

@ -15,7 +15,7 @@
#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG #if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
int esp_gdbstub_getchar() int esp_gdbstub_getchar(void)
{ {
uint8_t c; uint8_t c;
// retry the read until we succeed // retry the read until we succeed
@ -39,6 +39,12 @@ void esp_gdbstub_flush(void)
usb_serial_jtag_ll_txfifo_flush(); usb_serial_jtag_ll_txfifo_flush();
} }
#ifdef CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME
int esp_gdbstub_getfifo(void)
{
return 0; // TODO: IDF-7264
}
#endif // CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME
#else // CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG #else // CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG