| Author |
Message |
|
|
Post subject: Hardware programming in QNX
Posted: Aug 16, 2006 - 09:50 AM
|
|
New Member
Joined: Sep 15, 2004
Posts: 3
|
|
Hi,
I am new to QNX and have tried to start up programming in QNX momentics 6.3.0. The software I program needs to communicate together with a ASI-communication card. I have one from BihlWiedemann BW1195. I need ideas to get startet. Looking forward to hear from you.
regards morton. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Hardware programming in QNX
Posted: Aug 16, 2006 - 05:58 PM
|
|
Senior Member
Joined: Oct 28, 2004
Posts: 266
|
|
| I guess you can begin with PCI driver programming. Look into pci_attach() in the documentation |
_________________ Matthew Jin
Software Engineer
|
| |
|
|
|
 |
|
|
Post subject: RE: Hardware programming in QNX
Posted: Aug 16, 2006 - 07:13 PM
|
|
QNX Master
Joined: Jun 25, 2003
Posts: 977
|
|
You probably want to read all you can on resource managers, as this is a natural form to put a hardware driver in.
Rob Krten's book "Getting started with QNX Neutrino 2" is a good resource if the docs aren't enough, although it may be hard to get ahold of. I've heard QSSL has taken it over so you can check with them. There are a few topics for dealing with hardware that I'll list. Ask again about any specifics:
1) port I/O (You need to use ThreadCtl() and be super user
2) Interrupts
3) DMA (Shared) memory
4) PCI inquiry
There are other idiosyncratic areas, such as PCMCIA/CARDBUS, USB, and Network drivers for which there are development kits available. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Hardware programming in QNX
Posted: Aug 17, 2006 - 11:28 AM
|
|
New Member
Joined: Sep 15, 2004
Posts: 3
|
|
Hi,
thanks for your answers. I got the book from libary, and will start up with that.
regards morton  |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: Hardware programming in QNX
Posted: Aug 17, 2006 - 02:44 PM
|
|
QNX Master
Joined: Mar 30, 2004
Posts: 97
|
|
|
maschoen wrote:
You probably want to read all you can on resource managers, as this is a natural form to put a hardware driver in.
Rob Krten's book "Getting started with QNX Neutrino 2" is a good resource if the docs aren't enough, although it may be hard to get ahold of. I've heard QSSL has taken it over so you can check with them.
Just to confirm: yes, we have bought the rights to this book. If you'd like a copy, contact your sales rep. |
|
|
| |
|
|
|
 |
|
|