arch/arm/src/imxrt/imxrt_serial.c: Fix TTYS0 defined definitions of higher numbered ports

This commit is contained in:
David Sidrane
2019-01-16 17:33:23 -06:00
committed by Gregory Nutt
parent 178ed12903
commit c44c30784c
+4 -4
View File
@@ -100,19 +100,19 @@
# define UART4_ASSIGNED 1
#elif defined(CONFIG_LPUART5_SERIAL_CONSOLE)
# define CONSOLE_DEV g_uart5port /* LPUART5 is console */
# define TTYS5_DEV g_uart5port /* LPUART5 is ttyS0 */
# define TTYS0_DEV g_uart5port /* LPUART5 is ttyS0 */
# define UART5_ASSIGNED 1
#elif defined(CONFIG_LPUART6_SERIAL_CONSOLE)
# define CONSOLE_DEV g_uart6port /* LPUART6 is console */
# define TTYS6_DEV g_uart6port /* LPUART6 is ttyS0 */
# define TTYS0_DEV g_uart6port /* LPUART6 is ttyS0 */
# define UART6_ASSIGNED 1
#elif defined(CONFIG_LPUART7_SERIAL_CONSOLE)
# define CONSOLE_DEV g_uart7port /* LPUART7 is console */
# define TTYS7_DEV g_uart7port /* LPUART7 is ttyS0 */
# define TTYS0_DEV g_uart7port /* LPUART7 is ttyS0 */
# define UART7_ASSIGNED 1
#elif defined(CONFIG_LPUART8_SERIAL_CONSOLE)
# define CONSOLE_DEV g_uart8port /* LPUART8 is console */
# define TTYS8_DEV g_uart8port /* LPUART8 is ttyS0 */
# define TTYS0_DEV g_uart8port /* LPUART8 is ttyS0 */
# define UART8_ASSIGNED 1
#else
# undef CONSOLE_DEV /* No console */