Mail Archives: djgpp/2003/05/26/05:45:08
bill <bill AT hawkeselectronics DOT com> wrote:
> I am trying to set up the UART of a PC. Can anyone tell me how to set
> and read hardware ports using DJGPP, or possably a refference to the
> information.
For the case of the UART, save yourself the hassle and use an existing
library instead.
As to direct port programming: it's done essentially the same way on
all DOS-based compilers, with only minor differences. There are specialized
support calls in the runtime library, like
outportb
inportw
and so on. Learn about them in
info libc alpha outportb
Each compiler tends to give these a slightly different name, thus the
synonyms provided by DJGPP: outb, outp, outpw, inb, inp, ...
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -