[fpc-pascal] Re: Hardware Access on x64 Linux
Csányi Pál
csanyipal at gmail.com
Tue Jul 8 13:54:47 CEST 2008
Vladimir Karpenko <cr0acker-JGs/UdohzUI at public.gmane.org> writes:
>>> How can i access harware ports if there is no ports unit on Linux
>>> x64 port?
>
>>There is a tutorial for Hardware Access here:
>>http://wiki.lazarus.freepascal.org/Hardware_Access
> Well of course i read that, but there is no ports unit in x64 Linux.
>
> uses
> Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,
> {$IFDEF WIN32}
> Windows;
> {$ENDIF}
> {$IFDEF Unix}
> ports;
> {$ENDIF}
I solved the hardware access on Windows and GNU/Linux x32 too.
I use the following units: BaseUnix, x86, crt.
I use fpIOPerm to give permission to the port, and WritePortB to write
to the port.
--
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm
More information about the fpc-pascal
mailing list