18.2. Handling printf
Based on the examples in the previous section, we can create our own string printing function to handling printing of text strings, as shown below.
This works great for printing constant strings. We can also use this function to print other information by using sprint function to print the information to a text buffer, and then output it using UART_puts, the string output function we created:
However, it would also be useful if we can ...