Skip to content

Commit

Permalink
UART cleanup
Browse files Browse the repository at this point in the history
Clean up some compiler warnings, obsolete code
  • Loading branch information
pwittich committed Aug 7, 2019
1 parent feb9b79 commit a557912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions common/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ void UART4Print(const char* str)
//
// Write the next character to the UART.
//
//MAP_UARTCharPutNonBlocking(UART4_BASE, str[i]);
MAP_UARTCharPut(UART4_BASE, str[i]);

}
Expand All @@ -107,7 +106,6 @@ void UARTPrint(uint32_t uart_base, const char* str)
//
// Write the next character to the UART.
//
//MAP_UARTCharPutNonBlocking(UART4_BASE, str[i]);
MAP_UARTCharPut(uart_base, str[i]);

}
Expand Down
3 changes: 2 additions & 1 deletion common/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#include <stdbool.h>


// Initialize UART4. Assumes pin definitions were already run.
// Initialize UART4 and 1. Assumes pin definitions were already run.
void UART1Init(uint32_t ui32SysClock);
void UART4Init(uint32_t ui32SysClock);


Expand Down

0 comments on commit a557912

Please sign in to comment.