Newbie question: simple I/O port access sample code?

Hi,everybody.

Does anybody have a simple resource manager example for reading/writing an
I/O port?

Thanks,
Tudor

What are you looking for the resource manager part or the IO?

IO can be read with

ThreadCTL( NTO_TCTL_IO, 0 )
x = mmap_device_io( size of io, address );
in8(x); // reading

Check out8() for writing.

As for resource manager you should find what you need in the online doc

“Tudor Buican” <tudor@timb.com> wrote in message
news:98vr25$7rt$1@inn.qnx.com

Hi,everybody.

Does anybody have a simple resource manager example for reading/writing an
I/O port?

Thanks,
Tudor
\