Connecting stdin and stdout to serial port...
Michael Sokolov
msokolov@ivan.Harhan.ORG
Wed Aug 9 08:27:00 GMT 2000
"Russ.Shaw" <russell@webaxs.net> wrote:
> To use scanf(), printf() etc, files need to be defined
> for stdin and stdout. Somehow, these have to be connected
> to the input and output of the rs232 serial port.
>
> What's the usual way of doing this?
Take a look at libgloss, if you haven't already. It does precisely such things
for different embedded boards. It also has a very nice document in porting.texi
(or porting.tex, I don't remember).
--
Michael Sokolov Harhan Engineering Laboratory
Public Service Agent International Free Computing Task Force
International Engineering and Science Task Force
615 N GOOD LATIMER EXPY STE #4
DALLAS TX 75204-5852 USA
Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)
More information about the Newlib
mailing list