Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
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........