From: David Bacon <bacon@eecs.lehigh.edu>
Subject: Re: inb/outb for GNAT (Linux) ??
Date: 1998/01/27
Date: 1998-01-27T00:00:00+00:00 [thread overview]
Message-ID: <34CE1BC3.156DA6B9@eecs.lehigh.edu> (raw)
In-Reply-To: 6al3th$ptb$1@muller.loria.fr
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
next prev parent reply other threads:[~1998-01-27 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-27 0:00 inb/outb for GNAT (Linux) ?? Nicolas NAVET
1998-01-27 0:00 ` David Bacon [this message]
1998-01-28 0:00 ` Markus Kuhn
1998-01-28 0:00 ` Corey Minyard
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox