mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 10:38:40 +08:00
serial: add an option that selects uart rpmsg as console
This commit is contained in:
@@ -57,6 +57,9 @@
|
||||
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
|
||||
# undef USE_SERIALDRIVER
|
||||
# undef USE_EARLYSERIALINIT
|
||||
# elif defined(CONFIG_RPMSG_UART_CONSOLE)
|
||||
# undef USE_SERIALDRIVER
|
||||
# undef USE_EARLYSERIALINIT
|
||||
# else
|
||||
# define USE_SERIALDRIVER 1
|
||||
# define USE_EARLYSERIALINIT 1
|
||||
|
||||
@@ -58,6 +58,9 @@
|
||||
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
|
||||
# undef USE_SERIALDRIVER
|
||||
# undef USE_EARLYSERIALINIT
|
||||
# elif defined(CONFIG_RPMSG_UART_CONSOLE)
|
||||
# undef USE_SERIALDRIVER
|
||||
# undef USE_EARLYSERIALINIT
|
||||
# else
|
||||
# define USE_SERIALDRIVER 1
|
||||
# define USE_EARLYSERIALINIT 1
|
||||
|
||||
@@ -81,6 +81,16 @@ config RPMSG_UART
|
||||
select SERIAL_REMOVABLE
|
||||
select SERIAL_IFLOWCONTROL
|
||||
|
||||
config RPMSG_UART_CONSOLE
|
||||
bool "UART rpmsg console support"
|
||||
default n
|
||||
depends on RPMSG_UART
|
||||
---help---
|
||||
Register the UART rpmsg device as /dev/console so that is will be used
|
||||
as the console device.
|
||||
NOTE: support for this option must be implemented in the board logic by
|
||||
setting the \"isconsole\" argument in the uart_rpmsg_init() function to true.
|
||||
|
||||
#
|
||||
# Standard serial driver configuration
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user