esp32c3_serial.c: Remove the stub implementations of the early serial

functions as they are only called when the configuration is enabled.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-10-20 10:49:06 +02:00 committed by Gustavo Henrique Nihei
parent 1efc9fbac6
commit 018aa8eb8d
1 changed files with 1 additions and 26 deletions

View File

@ -1090,33 +1090,8 @@ int up_putc(int ch)
return ch;
}
#else /* HAVE_UART_DEVICE */
/****************************************************************************
* Name: riscv_earlyserialinit, riscv_serialinit, and up_putc
*
* Description:
* Stubs that may be needed. These stubs will be used if all UARTs are
* disabled. In that case, the logic in common/up_initialize() is not
* smart enough to know that there are not UARTs and will still expect
* these interfaces to be provided.
*
****************************************************************************/
void riscv_earlyserialinit(void)
{
}
void riscv_serialinit(void)
{
}
int up_putc(int ch)
{
return ch;
}
#endif /* HAVE_UART_DEVICE */
#else /* USE_SERIALDRIVER */
/****************************************************************************