Skip to content

Commit

Permalink
bugs in uart_echo
Browse files Browse the repository at this point in the history
* typos
* missing interrupt handler for UART4
  • Loading branch information
pwittich committed Apr 5, 2019
1 parent 5780dce commit 65f2096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/uart_echo/startup_gcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions projects/uart_echo/uart_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ UARTIntHandler(void)
uint32_t ui32Status;

//
// Get the interrrupt status.
// Get the interrupt status.
//
ui32Status = ROM_UARTIntStatus(UART4_BASE, true);

Expand All @@ -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);

Expand Down

0 comments on commit 65f2096

Please sign in to comment.