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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9cf87fd8fe05bc5e X-Google-Attributes: gid103376,public From: David Bacon Subject: Re: inb/outb for GNAT (Linux) ?? Date: 1998/01/27 Message-ID: <34CE1BC3.156DA6B9@eecs.lehigh.edu>#1/1 X-Deja-AN: 319724530 Content-Transfer-Encoding: 7bit References: <6al3th$ptb$1@muller.loria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Newsgroups: comp.lang.ada Date: 1998-01-27T00:00:00+00:00 List-Id: Nicolas NAVET wrote: > > Hello, > > I'am using GNAT for Linux. I need to write > data to a serial port. Is it possible to do that with ADA > without using a device driver ? > I' have searched through the packages for functions like > inb()/outb() but without result. > > > Thanks, > > Nicolas Navet You are looking in the wrong place, and my answer is necessarily not Ada-specific: In Linux, the serial ports can be opened and written to in much the same way as regular files. They are usually named /dev/cua0, /dev/cua1, etc. For low-level operations (such as manipulating the DTR bit), you may find direct-access operations on /dev/port useful also (try "man port" on Slackware or RedHat Linux). dB