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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -