console - how to register my UART putc or puts function for use with standard library printf() function? -


i writing bare metal program beaglebone. use uart0 serial debug messages. have made custom function called

uart0_putc(const char c); 

and

uart0_puts(const char *str);  

which output character or string uart0 able see in terminal window.

sourcery-codebench mentor graphics compiler suite using here provides standard c-libraries printf(). want hook uart0_putc , uart0_puts can use provided printf() getting formatted messages on terminal.

anyone can tell me feasible? , how same?

thanks in advance.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -