Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Parallel port accessing in QNX Neutrino self hosted: (1 Item)
   
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........