[fpc-pascal] Acces IO-ports in Linux with FPC 2.2.0

Johann Glaser Johann.Glaser at gmx.at
Thu Mar 5 17:59:59 CET 2009


Hi!

> I am developing a free pascal software in Linux, which uses the
> parallel digital input/output card (with intel 8255) in an industrial PC.
> I was able to compile and run without problems with FP 2.0.4.
> 
> Now, that the oldlinux unit is removed in the latest FPC,
> I cannot compile the program any more.
> The error messages are:
> - identifier not found "fdOpen"
> - identifier not found "fdWrite"
> - identifier not found "fdRead"

It seems you have a driver for this card and want to talk to the driver
via a Linux device (in /dev/). My first thought was you wanted to access
x86 IO ports (using IN and OUT instructions).

Simply use the online help to find the desired functions, e.g.
  http://community.freepascal.org:10000/docs-html/rtl/baseunix/fpopen
This also lists the constants used for the access mode.

Bye
  Hansi





More information about the fpc-pascal mailing list