|
Parallel port accessing in QNX Neutrino self hosted
|
12/28/2008 12:55 PM
post19269
|
Parallel port accessing in QNX Neutrino self hosted
Could anyone help me how to modify this program shown below written in C to be used in qnx......?
This is a simple program to toggle all the 8 data bits in a parallel port data register with an interval of 1 second.
#include"conio.h"
#include"dos.h"
#define PORT 0x378
void main()
{
while(!kbhit())
{
outportb(PORT,~inportb(PORT));
delay(1000);
}
}
In order to open the parallel port, do i have to change any settings in my computer. I have a Pentium 4, 2.66 GHz
processor........
|
|
|