Mail Archives: djgpp/1998/01/08/07:06:57
On 8 Jan 98, Gisle Vanem was found to have commented thusly:
> > On Wed, 7 Jan 1998, Gisle Vanem wrote:
> >
> > > I'm looking for a library (freeware or commercial) that emulates the
> > > Unix termio interface. It shall be used with djgpp and possibly Borland
> > > under plain DOS. I only need the basic functionality, not all the ioctl()
> > > details.
> >
> > Please explain what do you mean by ``basic functionality''. DJGPP has
> > termios (not termio), but it is not clear to me whether it will do for
> > your needs.
>
> I found the djgpp emulation too ``basic'' for my needs. I need high-speed
> (~38kb) access to a COM-port. djgpp's termio supports only the console
> and doesn't make use of the __FSEXT'ensions.
>
If you have time-critical stuff on an asynchronous serial port, you
are going to have to use the BIOS handler interrupts. A better
idea is to write your own interrupt handler for
serial data since there is a lot of variation (no standardization)
regarding BIOS on the serial port, and older BIOSes seem to have no
handler whatsoever. There is plenty of (mostly assembler) code
around explaining circular buffers and setting up the 8259 controller
and so on. This can get quite "complex," but you were the one who
said that things right now were "too 'basic'."
Best regards,
Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara TURKEY
mitch AT duzen DOT com DOT tr
other job title: Sequoia's (dob 12-20-95) daddy
- Raw text -