You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ha...@apache.org on 2022/08/24 14:41:34 UTC
[incubator-nuttx] 01/01: arch/tiva: Fix typo and minor code formatting
This is an automated email from the ASF dual-hosted git repository.
hartmannathan pushed a commit to branch fix-tiva-typo
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit b322e8d02dbc812558e0041f60992853ef97034f
Author: Nathan Hartman <59...@users.noreply.github.com>
AuthorDate: Wed Aug 24 10:40:22 2022 -0400
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;