mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arm/armv8-r: fix build break if disable CONFIG_UART_PL011
Common code should support the if PL011 is not enabled Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -56,7 +56,9 @@ void arm_earlyserialinit(void)
|
|||||||
* when they are first opened.
|
* when they are first opened.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_UART_PL011
|
||||||
pl011_earlyserialinit();
|
pl011_earlyserialinit();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
@@ -69,7 +71,16 @@ void arm_earlyserialinit(void)
|
|||||||
|
|
||||||
void arm_serialinit(void)
|
void arm_serialinit(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_UART_PL011
|
||||||
pl011_serialinit();
|
pl011_serialinit();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#else /* USE_SERIALDRIVER */
|
||||||
|
|
||||||
|
int up_putc(int ch)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* USE_SERIALDRIVER */
|
#endif /* USE_SERIALDRIVER */
|
||||||
|
|||||||
Reference in New Issue
Block a user