Hi

> I successfully used the following approach: I have one function that  
> writes one
> character, that is passed with the function call:
> 
> void LCDputc(unsigned char c)
> {
> ...
> /* Insert code for writing one character to LCD */
> ...
> }

Shouldnt it be possible to better use

stdout = STREAM_USART; /* or something similar */

void putchar(char c)
{
/* your code here */
}

and use the normal printf then? Sorry cant test i right now. But this 
seems the best way for me.

Regards,

Jan

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to