From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7f042c59351c9fb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-22 07:47:15 PST Sender: jerry@TRAVELLER Newsgroups: comp.lang.ada Subject: Re: hardware interfacing in linux with gnat References: <3B326D90.5475F1E3@hccnet.nl> From: Jerry van Dijk Date: 22 Jun 2001 16:32:17 +0200 Message-ID: X-Newsreader: Gnus v5.7/Emacs 20.7 NNTP-Posting-Host: 139.92.166.185 X-Trace: 22 Jun 2001 14:44:22 GMT, 139.92.166.185 Organization: Global Network Services - Remote Access Mail & News Services X-Complaints-To: abuse@prserv.net Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!news-reader.ntrnet.net!uunet!ash.uu.net!newsfeed2.us.prserv.net!prserv.net!news3.prserv.net!139.92.166.185 Xref: archiver1.google.com comp.lang.ada:9030 Date: 2001-06-22T16:32:17+02:00 List-Id: Jaap van Erk 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