From 4d23ac87149cc1294ae08bcc1d78e4f5aa126626 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 23 Aug 2022 03:13:52 +0100 Subject: [PATCH] lm4f/uart: Fixed up the naming of one of the variables in uart_set_databits() --- lib/lm4f/uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lm4f/uart.c b/lib/lm4f/uart.c index f37907b4..542ae3b7 100644 --- a/lib/lm4f/uart.c +++ b/lib/lm4f/uart.c @@ -138,16 +138,16 @@ void uart_set_baudrate(uint32_t uart, uint32_t baud) */ void uart_set_databits(uint32_t uart, uint8_t databits) { - uint32_t reg32, bitint32_t; + uint32_t reg32, bits32; /* This has the same effect as using UART_LCRH_WLEN_5/6/7/8 directly */ - bitint32_t = (databits - 5) << 5; + bits32 = (databits - 5) << 5; /* TODO: What about 9 data bits? */ reg32 = UART_LCRH(uart); reg32 &= ~UART_LCRH_WLEN_MASK; - reg32 |= bitint32_t; + reg32 |= bits32; UART_LCRH(uart) = reg32; }