From: Jaap van Erk <j.h.van.erk@hccnet.nl>
Subject: hardware interfacing in linux with gnat
Date: Thu, 21 Jun 2001 23:56:32 +0200
Date: 2001-06-21T21:52:00+00:00 [thread overview]
Message-ID: <3B326D90.5475F1E3@hccnet.nl> (raw)
Dear all,
I have an hardware interface card with relay's and 8255's.
It's published in Elektuur several years ago (a Dutch electronics
magazine)
this card can be steered with io adresses 792 to 800 (decimal).
In C we use the inb and outb commands (see the io-port mini howto)
Because we must also use ioperm(), and a optimizing flag -O we can
access the hardware in linux.
I tried Jerry van Dijk's clock.adb program to do it also; it's compiling
without errors, but it give a coredump when accessing the ports.
How can I use ioperm() in gnat? (3.11 for linux 2.0 and 3.13 for 2.2)
clock.adb works ok when i'm using Dos.(Bedankt, Jerry voor dit programma
)
Any idea what's going wrong?
Best regards,
Jaap van Erk
Rotterdam
next reply other threads:[~2001-06-21 21:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-21 21:56 Jaap van Erk [this message]
2001-06-21 23:43 ` hardware interfacing in linux with gnat B. Douglas Hilton
2001-06-22 14:34 ` Jerry van Dijk
2001-06-22 14:32 ` Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox