From a5a89915fcf5d931f934cc6cbe125aaaf13288ef Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 14 May 2012 14:07:08 -0500 Subject: [PATCH] PL011 uart: rename UART -> uart * Left over var name from my test code * This should be pretty close to functional (if not already working) * Any more uart experimentation will not reach upstream until working. --- src/system/kernel/arch/arm/uart_pl011.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/arm/uart_pl011.cpp b/src/system/kernel/arch/arm/uart_pl011.cpp index b46a4dff73..3bcab84153 100644 --- a/src/system/kernel/arch/arm/uart_pl011.cpp +++ b/src/system/kernel/arch/arm/uart_pl011.cpp @@ -82,8 +82,8 @@ UartPL011::InitPort(uint32 baud) // Calculate baud divisor uint32 baudDivisor = BOARD_UART_CLOCK / (16 * baud); uint32 remainder = BOARD_UART_CLOCK % (16 * baud); - uint32 baudFractional = ((8 * remainder) / BAUD >> 1) - + ((8 * remainder) / BAUD & 1); + uint32 baudFractional = ((8 * remainder) / baud >> 1) + + ((8 * remainder) / baud & 1); // Disable UART Disable();