Re: how to talk to the serial and parallel ports through a C

2003-06-12 Thread Dan Nelson
In the last episode (Jun 11), Bernard Dugas said: Not sure, but i'm using the serial port only to read and write electrical values, to command power relays. On mickey systems, serial drivers are far to complicated for that. Did anybody write a simple kernel module doing just that ?

Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Bernard Dugas
Hi, I also did some programming on serial port to control pins with a c program under linux, but I didn't found any simple way to port it under freebsd. Any hint ? For instance, I need the equivalent of : inb(adr) outb(val,adr) iopl(n) ioperm(adr) from sys/io.h and stdio.h in linux. Best

Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Malcolm Kay
On Wed, 11 Jun 2003 08:15, Bernard Dugas wrote: Hi, I also did some programming on serial port to control pins with a c program under linux, but I didn't found any simple way to port it under freebsd. Any hint ? For instance, I need the equivalent of : inb(adr) outb(val,adr) iopl(n)

Re: how to talk to the serial and parallel ports through a C

2003-06-11 Thread Guillaume
On 10 June 2003 18:45, Bernard Dugas wrote: Hi, I also did some programming on serial port to control pins with a c program under linux, but I didn't found any simple way to port it under freebsd. Any hint ? For instance, I need the equivalent of : inb(adr) outb(val,adr) iopl(n)

how to talk to the serial and parallel ports through a C program

2003-06-09 Thread Dan Malaby
I was wondering if there was a good place to go to get programing examples on how to talk to the serial and parallel ports. I have looked in the developers handbook but have not any luck finding what I want. Any pointers would be appreciated Thanks Daniel Malaby voice:(510) 531-6500