delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/05:09:21

Message-Id: <2.2.16.19980212100841.25774aea@sunf0>
Mime-Version: 1.0
Date: Thu, 12 Feb 1998 10:08:41 +0000
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Nigel Megitt <nigel DOT megitt AT rd DOT bbc DOT co DOT uk>
Subject: Re: Serial ports?
Cc: djgpp AT delorie DOT com

Thanks Eli,

I had indeed read that section of the info file, but, perhaps because there
are other things I don't know, I didn't find it very helpful. It does not
say how to use the extensions, for instance to open up COM1 with 8 stop
bits, at 9600 baud etc., with a 256 byte buffer size, returning a handle
which could be used with fgetc or some other i/o function. This is the kind
of information I want - I feel sure it is possible, perhaps even very easy,
to do, but, being new to PC programming, I can't work out how.

Nigel

At 11:54 12/02/98 +0200, Eli Zaretskii wrote:
>
>On 11 Feb 1998, Nigel Megitt wrote:
>
>> I'm trying to access COM1 and COM2 as buffers with file pointers, but I can't
>> find out how to do this by looking in the Info files. Is there an easy way to
>> set the ports up and use them, or do I have to use _bios_serialcom to set up
>> each port and then take data byte by byte?
>
>You could use the DJGPP Filesystem Extensions feature.  From the DOS
>prompt, type "info libc alpha 'File System'" and read there.
>
>
Nigel Megitt

Spectrum Planning Group, BBC Research and Development Department,
Kingswood Warren, Tadworth, Surrey KT20 6NP
Email: nigel DOT megitt AT rd DOT bbc DOT co DOT uk
Tel: 01737 836634

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019