comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: [Q] com port function or procedure
Date: 2000/03/20
Date: 2000-03-20T00:00:00+00:00	[thread overview]
Message-ID: <38D67341.FE3A26D6@maths.unine.ch> (raw)
In-Reply-To: jB98S2nk$GA.257@news.thrunet.com

Hee wrote:

> C language have com port function such as "outportb" and "inportb".
> Do Ada language have any com port function or procedure?

You can reach the C function via pragma e.g.

   procedure Outportb(Port : in Unsigned_16; Data : in Unsigned_8);
   pragma Import(C, Outportb, "outportb");

BTW: is it really in every C implementation ? ("C language have...")
______________________________________________________
Gautier  --  http://members.xoom.com/gdemont/gsoft.htm




  reply	other threads:[~2000-03-20  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-21  0:00 [Q] com port function or procedure Hee
2000-03-20  0:00 ` Gautier [this message]
2000-03-20  0:00 ` Gisle S�lensminde
replies disabled

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