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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-21 14:54:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed2.news.nl.uu.net!sun4nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.hccnet.nl!not-for-mail From: Jaap van Erk Newsgroups: comp.lang.ada Subject: hardware interfacing in linux with gnat Date: Thu, 21 Jun 2001 23:56:32 +0200 Organization: Hobby Computer Club News Network Message-ID: <3B326D90.5475F1E3@hccnet.nl> NNTP-Posting-Host: fia244-30.dsl.hccnet.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.hccnet.nl 993160320 8110 62.251.30.244 (21 Jun 2001 21:52:00 GMT) X-Complaints-To: abuse@hccnet.nl NNTP-Posting-Date: 21 Jun 2001 21:52:00 GMT X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: nl,en-US Xref: archiver1.google.com comp.lang.ada:9007 Date: 2001-06-21T21:52:00+00:00 List-Id: 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