forked from espressif/esp-idf
esp_gdbstub: fix build for USB serial/jtag protocol
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
|
||||
#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
|
||||
|
||||
int esp_gdbstub_getchar()
|
||||
int esp_gdbstub_getchar(void)
|
||||
{
|
||||
uint8_t c;
|
||||
// retry the read until we succeed
|
||||
@ -39,6 +39,12 @@ void esp_gdbstub_flush(void)
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user