From: "A.Appleyard" Organization: Materials Science Centre To: wilbert AT se-43 DOT wpa DOT wtb DOT tue DOT nl, djgpp AT delorie DOT com Date: Tue, 15 Oct 1996 08:19:30 GMT Subject: Re: reading the port Message-ID: <1082AD76130@fs2.mt.umist.ac.uk> wilbert AT se-43 DOT wpa DOT wtb DOT tue DOT nl (W. Alberts) wrote:- > Is there any package, source code, examples, documentation dealing with how > to read the serial ports? #include see file djgpp\include\pc.h :- #define uns unsigned uns char inportb(uns short port); uns short inportw(uns short port); uns long inportl(uns short port); void outportb(uns short port, uns char data); void outportw(uns short port, uns short data); void outportl(uns short port, uns long data); uns char inportsb(uns short port, uns char *buf, uns len); uns short inportsw(uns short port, uns short *buf, uns len); uns long inportsl(uns short port, uns long *buf, uns len); void outportsb(uns short port, uns char *buf, uns len); void outportsw(uns short port, uns short *buf, uns len); void outportsl(uns short port, uns long *buf, uns len);