Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] printf

2005-03-24 by Anton Erasmus

On 24 Mar 2005 at 9:15, neptunus1000 wrote:

> 
> 
> Hello,
> 
> I'wondering why my classes are not working. I want to build a Com
> class so a can use printf to put something on the uart.
> 
> The functie's com.UARTWriteChar('x'); com.__putchar('\n'); in the main
> are working good. But the printf is not working. Can some one help my.

{Code snipped]


Getting printf to output using your own routines, is more a question of porting the
standard C library than anything else. Which compiler do you use, and which standard
library ?  If it is newlib, then look at the new-lib_lpc stubs library to see an example of
how to port newlib.

Regards
   Anton Erasmus


-- 
A J Erasmus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.