From 1d622b6f79e6c659804931c7d6bd78ce952a7520 Mon Sep 17 00:00:00 2001 From: Nathan Hartman <59230071+hartmannathan@users.noreply.github.com> Date: Wed, 24 Aug 2022 10:40:22 -0400 Subject: [PATCH] arch/tiva: Fix typo and minor code formatting --- arch/arm/src/tiva/common/tiva_serial.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/src/tiva/common/tiva_serial.c b/arch/arm/src/tiva/common/tiva_serial.c index 83d6f7f1c5..df4b7903ad 100644 --- a/arch/arm/src/tiva/common/tiva_serial.c +++ b/arch/arm/src/tiva/common/tiva_serial.c @@ -64,8 +64,8 @@ # error "No UARTs enabled" #endif -/* Which UART with be tty0/console and which tty1-7? The console will always - * be ttyS0. If there is no console then will use the lowest numbered UART. +/* Which UART will be tty0/console and which tty1-7? The console will always + * be ttyS0. If there is no console then we'll use the lowest numbered UART. */ /* First pick the console and ttys0. This could be any of UART0-5 */ @@ -123,10 +123,10 @@ # define TTYS0_DEV g_uart5port /* UART5 is ttyS0 */ # define UART5_ASSIGNED 1 # elif defined(CONFIG_TIVA_UART6) -# define TTYS0_DEV g_uart6port /* UART5 is ttyS0 */ +# define TTYS0_DEV g_uart6port /* UART6 is ttyS0 */ # define UART6_ASSIGNED 1 # elif defined(CONFIG_TIVA_UART7) -# define TTYS0_DEV g_uart7port /* UART5 is ttyS0 */ +# define TTYS0_DEV g_uart7port /* UART7 is ttyS0 */ # define UART7_ASSIGNED 1 # endif #endif @@ -270,8 +270,8 @@ #endif /* Pick ttys7. This could be one of UART6-7. It can't be UART0-5 because - * those have already been assigned to ttsyS0, 1, 2, 3, 4, or 6. One of - * UART 6-7 could also be the console. + * those have already been assigned to ttsyS0, 1, 2, 3, 4, 5, or 6. One + * of UART 6-7 could also be the console. */ #if defined(CONFIG_TIVA_UART6) && !defined(UART6_ASSIGNED) @@ -844,8 +844,8 @@ static void up_set_format(struct uart_dev_s *dev) case 7: lcrh |= UART_LCRH_WLEN_7BITS; break; - case 8: + case 8: default: lcrh |= UART_LCRH_WLEN_8BITS; break;