lcd display control and parallel access

Hello,

for a school project i have to write a program that can control a lcd
display(HD44780) under qnx. I have been looking for more than a week now,
but i havent been able to find any working program that can send and receive
signals from the parallel port. I downloaded the Dev.par file, but i cant
compile it. If i try to make it, the message i get is:

cc -2 -ms -w9 -Otax -g1 -i …/…/H -c -o main.o …/main.c
cc: unknown option: ‘-2’

Is there anyone who has a simple example of a program that can send and
receive signals from the parallel port?
I am desperate since i have been trying for over a week now…;(

Any help is appreciated!

Greetings Brotten (prut@altavista.com)

why not program just a little *.c stuff reading/writing from /dev/par ?
e.g.


char buf[80] ;
int fd ,
retCode ;

fd = open( “/dev/par …”, O_RDWR ) ;
retCode = write( fd, buf, sizeof( buf ) ) ; // here you write sth.

retCode = read( fd, buf, sizeof( buf ) ) ; // and here you read sth.



bbartje schrieb:

Hello,

for a school project i have to write a program that can control a lcd
display(HD44780) under qnx. I have been looking for more than a week now,
but i havent been able to find any working program that can send and receive
signals from the parallel port. I downloaded the Dev.par file, but i cant
compile it. If i try to make it, the message i get is:

cc -2 -ms -w9 -Otax -g1 -i …/…/H -c -o main.o …/main.c
cc: unknown option: ‘-2’

Is there anyone who has a simple example of a program that can send and
receive signals from the parallel port?
I am desperate since i have been trying for over a week now…;(

Any help is appreciated!

Greetings Brotten (> prut@altavista.com> )

IBK-Consult for Real-Time
http://www.ibk-consult.de
===== QNX is for Real-Time: http://www.qnx.com ====

and what you mean by sending/receivin “signals” from Parallel port ?

IBK schrieb:

why not program just a little *.c stuff reading/writing from /dev/par ?
e.g.


char buf[80] ;
int fd ,
retCode ;

fd = open( “/dev/par …”, O_RDWR ) ;
retCode = write( fd, buf, sizeof( buf ) ) ; // here you write sth.

retCode = read( fd, buf, sizeof( buf ) ) ; // and here you read sth.

bbartje schrieb:

Hello,

for a school project i have to write a program that can control a lcd
display(HD44780) under qnx. I have been looking for more than a week now,
but i havent been able to find any working program that can send and receive
signals from the parallel port. I downloaded the Dev.par file, but i cant
compile it. If i try to make it, the message i get is:

cc -2 -ms -w9 -Otax -g1 -i …/…/H -c -o main.o …/main.c
cc: unknown option: ‘-2’

Is there anyone who has a simple example of a program that can send and
receive signals from the parallel port?
I am desperate since i have been trying for over a week now…;(

Any help is appreciated!

Greetings Brotten (> prut@altavista.com> )

IBK-Consult for Real-Time
http://www.ibk-consult.de
===== QNX is for Real-Time: > http://www.qnx.com > ====

IBK-Consult for Real-Time
http://www.ibk-consult.de
===== QNX is for Real-Time: http://www.qnx.com ====