comp.lang.ada
 help / color / mirror / Atom feed
* hardware interfacing in linux with gnat
@ 2001-06-21 21:56 Jaap van Erk
  2001-06-21 23:43 ` B. Douglas Hilton
  2001-06-22 14:32 ` Jerry van Dijk
  0 siblings, 2 replies; 4+ messages in thread
From: Jaap van Erk @ 2001-06-21 21:56 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-06-22 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-21 21:56 hardware interfacing in linux with gnat Jaap van Erk
2001-06-21 23:43 ` B. Douglas Hilton
2001-06-22 14:34   ` Jerry van Dijk
2001-06-22 14:32 ` Jerry van Dijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox