From: Peeter V. <Pee...@ma...> - 2002-05-02 16:01:20
|
> Although dzcomm does provide a fifo buffer structure and associated > funcitons for general use, it only actually uses it when it is > running in DOS (in unix type systems, the OS is already doing the > interupt handling and buffering, so why duplicate effort). This makes sence, for portability reasons there might be helpful not directly use the fifo-s from user side but through special function calls to do the same things for input and output. Since my time is up for now I'll use tty calls directly for now and make for DOS another routines using rs232 with dzcomm. I think that at some time I'll return to the portability of dzcomm. This is very good library to use with DJGPP. > int rv; > > rv = comm_port_test( the_port ); > if( rv != -1 ) { > ci = (unsigned char) rv; > printf( "In<- %02x\n", ci); > } > Did not work, rv stays always -1. I looked the driver wrapper layer functions and saw that there might be some flag problems too. Since my time is up I did not dig deeper. If You get this working it will be very helpful for any newcomers to have such program as an example for DOS and for Linux. Many thanks ... Peeter Vois http://my.tele2.ee/vois |