Formatted I/O
Posted: Thu Mar 23, 2017 11:31 am
Hi,
Is there any way (other than dealing with putchar() replacement directly) to do formatted output (via fdprintf, etc.) through a low level function of my own? I'm moving an older UART based project to use an FTDI async FIFO (8 bit bus) USB IC. There is a ton of formatted output code already in play. With the Rabbit Softools compiler, there was an Fassign function that let you point a file descriptor at any function, avoiding putchar() completely for any given descriptor. I remember with the Keil tools, I had to directly manipulate putchar(). How would I best address this with the NB tools?
Thanks,
Ray
Is there any way (other than dealing with putchar() replacement directly) to do formatted output (via fdprintf, etc.) through a low level function of my own? I'm moving an older UART based project to use an FTDI async FIFO (8 bit bus) USB IC. There is a ton of formatted output code already in play. With the Rabbit Softools compiler, there was an Fassign function that let you point a file descriptor at any function, avoiding putchar() completely for any given descriptor. I remember with the Keil tools, I had to directly manipulate putchar(). How would I best address this with the NB tools?

Thanks,
Ray