Configuring UART ports
Programs such as
addTwoNums call the
SER_PutChar() functions to output ASCII characters to a terminal. The
Retarget.c file redefines the
fputc() functions, which, in turn, call
SER_PutChar(). These low-level functions illustrate some important I/O models that we'll explore using a program that checks if a string entered is a palindrome (for example, radar, civic, and level are palindromes). We'll call this recipe
How to do it…
Follow the steps outlined to configure UART ports:
- Create a project named palindrome; use the RTE manager to configure the board as we did for
addTwoNums_c3v0folder, in the Performing arithemetic operations recipe.
- Create a file named ...