comp.lang.ada
 help / color / mirror / Atom feed
* Importing C Structures
@ 1995-03-23  6:34 Chris O'Regan
  1995-03-23  7:55 ` Vladimir Vukicevic
  1995-03-24 15:32 ` Robert Dewar
  0 siblings, 2 replies; 20+ messages in thread
From: Chris O'Regan @ 1995-03-23  6:34 UTC (permalink / raw)



   For my Real-Time Systems project, my partner and I are writing a program
to control a train set.  We will be working on an Indy using GNAT 2.03, and
as little C code as possible.

   We need to interface the Indy's serial port.  We have some documention
which explains how to do this in standard C, but we would prefer to do this
in Ada.  We figure that we will need to import the functions and types from
the standard C library.

   Importing a function isn't a problem, but what about data types?
Rationale and the Reference Manual claim that it is possible, but without an
sample code snippet, we don't know where to begin.

   Could someone shed some light on the subject?  Or should we give in and
write our serial port routines in C?


Chris O'Regan
Computer Engineering,
Concordia University,
Montreal, Canada.

-- 



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~1995-04-07  0:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-23  6:34 Importing C Structures Chris O'Regan
1995-03-23  7:55 ` Vladimir Vukicevic
1995-03-23 18:55   ` Robert S. White
1995-03-24  8:51     ` Vladimir Vukicevic
1995-03-25  9:57       ` Keith Thompson
1995-03-26 13:16         ` Larry Kilgallen, LJK Software
1995-03-27  0:00           ` Kevin F. Quinn
1995-04-07  0:00             ` Larry Kilgallen
1995-03-27 15:35           ` Theodore Dennison
1995-03-28  0:00             ` Robert Dewar
1995-03-28 11:44             ` Keith Thompson
1995-03-29  0:00               ` misattrubation (was: Re: Importing C Structures) Theodore Dennison
1995-03-31  0:00                 ` Theodore Dennison
1995-03-27 23:39           ` Importing C Structures Keith Thompson
1995-03-27 16:00       ` Norman H. Cohen
1995-03-24 16:08     ` Robert I. Eachus
1995-03-24 20:20     ` Bob Gilbert
1995-03-25 18:07     ` Robert Dewar
1995-03-24 17:30   ` Robert Dewar
1995-03-24 15:32 ` Robert Dewar

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