comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry van Dijk <jvandyk@attglobal.net>
Subject: Re: hardware interfacing in linux with gnat
Date: 22 Jun 2001 16:32:17 +0200
Date: 2001-06-22T16:32:17+02:00	[thread overview]
Message-ID: <uu218poum.fsf@attglobal.net> (raw)
In-Reply-To: 3B326D90.5475F1E3@hccnet.nl


Jaap van Erk <j.h.van.erk@hccnet.nl> writes:

> I have an hardware interface card with relay's and  8255's.
> It's published in Elektuur several years ago (a Dutch electronics
> magazine)

Can you really still get the 8255 PIO ? That's a blast from the past...

Ohh, oops, that's off-topic, I know, I know... :-)

> 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.

I wouldn't expect a coredump, but on linux you need to do it the unix way.

> 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
> )

As for ioperm, just import it and call it. I'll see if I can come up with
an example tonight.


-- 
--  Jerry van Dijk   | email: jvandyk@attglobal.net
--  Leiden, Holland  | web:   home.trouwweb.nl/Jerry



      parent reply	other threads:[~2001-06-22 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
replies disabled

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