Hello,
I wish to define my own stream/IOstream/file descriptor so I can use fprintf with any hardware. I can hi-jack stdout and stderr and write to the UART, e.g., fprintf(stdout,“Comes out the UART %d”, someInt).
I would rather have fprintf(myDefinedStream,“Comes out the someDevice %d”, someInt).
I have many devices where fprintf would be handy, SDcard, external SRAM, ROM, LCD UART, and would like to define streams for them all.
All the low level code is written to write and read one char at a time, just got to define the stream and map to it.
Thanks
Using yagarto toolchain for arm. No FDEV functions that I can find.