We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.