DSPRelated.com
Forums

Overload printf function on C28 and DSP/BIOS

Started by TridenT March 29, 2005
Hi,

 i'm working on C2812 TEXAS DSP.
I'd like to redefine a printf function to send strings to serial port
instead of RTDX way.

Have an idea ?

I'd tried to redefined putchar or putc function, but it seems more
complex.

thx.
Hello,

How about using sprintf() to do the format conversion and build a
string and then using your own putchar function to print the string?

Clay

"Clay" <physics@bellsouth.net> wrote in message news:<1112113783.794301.274890@z14g2000cwz.googlegroups.com>...
> Hello, > > How about using sprintf() to do the format conversion and build a > string and then using your own putchar function to print the string? > > Clay
Yes, but I was wondering something easier exists. Some up/compilers maps their I/O (printf) to serial port automatically, or allow putchar override. But it seems it is not possible with C28 and CCS compilation. So, must do it from scratch ! again ! neverless, thx Clay !