Mail Archives: djgpp/1996/10/15/03:39:30
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 <pc.h>
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);
- Raw text -