From 65f20961d19f0b4d739e3e40f2a9bdf8855f7389 Mon Sep 17 00:00:00 2001 From: Peter Wittich Date: Fri, 5 Apr 2019 12:16:26 -0500 Subject: [PATCH] bugs in uart_echo * typos * missing interrupt handler for UART4 --- projects/uart_echo/startup_gcc.c | 2 +- projects/uart_echo/uart_echo.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/uart_echo/startup_gcc.c b/projects/uart_echo/startup_gcc.c index e97375a7..b26f251f 100644 --- a/projects/uart_echo/startup_gcc.c +++ b/projects/uart_echo/startup_gcc.c @@ -140,7 +140,7 @@ void (* const g_pfnVectors[])(void) = IntDefaultHandler, // SSI2 Rx and Tx IntDefaultHandler, // SSI3 Rx and Tx IntDefaultHandler, // UART3 Rx and Tx - IntDefaultHandler, // UART4 Rx and Tx + UARTIntHandler, // UART4 Rx and Tx IntDefaultHandler, // UART5 Rx and Tx IntDefaultHandler, // UART6 Rx and Tx IntDefaultHandler, // UART7 Rx and Tx diff --git a/projects/uart_echo/uart_echo.c b/projects/uart_echo/uart_echo.c index 258dca9c..da1eb27f 100644 --- a/projects/uart_echo/uart_echo.c +++ b/projects/uart_echo/uart_echo.c @@ -78,7 +78,7 @@ UARTIntHandler(void) uint32_t ui32Status; // - // Get the interrrupt status. + // Get the interrupt status. // ui32Status = ROM_UARTIntStatus(UART4_BASE, true); @@ -99,7 +99,7 @@ UARTIntHandler(void) ROM_UARTCharGetNonBlocking(UART4_BASE)); // - // Blink the LED to show a character transfer is occuring. + // Blink the LED to show a character transfer is occurring. // MAP_GPIOPinWrite(GPIO_PORTJ_BASE, GPIO_PIN_1, GPIO_PIN_0);