This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How printf function can sends a data using UART?

Hi ,
I'm working on FlashFs example for mcb1700 and can run it on my board but i couldn't understand how printf function can send a string to RS232 using UART0 of lpc1768. I read another thread that one asked a similar question on C51 and a person said that printf function calls putchar() and we should modify putchar function to send the string to another UART but the question is this:
however i know that i can modify SER_int()in serial.c for changing the UART port to UART3 or so on.
How the printf function can communicate with SER_getChar()in serial.c file to send a string to serial port?
for example how the following code sends the string to RS232 ic with UART0?
printf("\nRead data from file %s\n",fname);
i couldn't find the source code in program.

thanks.