I'm use CrossStudio to compile. And a just want to use printf. The
compiler is always telling my that I hava to implement __putChar. So
I thought it is handy to build a Com class, so I can use printf. But
it is not working as a hoped.
Thanks
ps my there are beter way's
--- In lpc2000@yahoogroups.com, "Anton Erasmus" <antone@s...> wrote:
> 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 ErasmusMessage
Re: printf
2005-03-24 by neptunus1000
Attachments
- No local attachments were found for this message.