comp.lang.ada
 help / color / mirror / Atom feed
* serial port, console IO
@ 1992-10-28 16:12 cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!u
  0 siblings, 0 replies; 3+ messages in thread
From: cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!u @ 1992-10-28 16:12 UTC (permalink / raw)


Hello,

When you use the Alsys board support packages, the parameters passed when
instantiating the generic paclage CONSOLE_IO are the following:

	package SERIAL_PORT is new CONSOLE-IO(
		X0N_XOFF	=>TRUE,
		ECHO	 	=>TRUE,
		LINE_EDIT	=>TRUE,
		IN_BUF_SIZE	=>512,
		OUT_BUF_SIZE	=>512,
		GET_SERIAL_VECTOR_OFFSET=>
			GET_SERIAL_VECTOR_OFFSET,
		PUT_CHAR	=>PUT_CHAR);

Can someone explain the last three lines of the above?

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

* Re: serial port, console IO
@ 1992-10-28 21:25 Robert I. Eachus
  0 siblings, 0 replies; 3+ messages in thread
From: Robert I. Eachus @ 1992-10-28 21:25 UTC (permalink / raw)


In article <1992Oct28.091237.408@doc.bmd.trw.com> nickgill@doc.bmd.trw.com writ
es:

   When you use the Alsys board support packages, the parameters passed when
   instantiating the generic paclage CONSOLE_IO are the following:

	   package SERIAL_PORT is new CONSOLE-IO(
		   X0N_XOFF	=>TRUE,
		   ECHO	 	=>TRUE,
		   LINE_EDIT	=>TRUE,
		   IN_BUF_SIZE	=>512,
		   OUT_BUF_SIZE	=>512,
		   GET_SERIAL_VECTOR_OFFSET=>
			   GET_SERIAL_VECTOR_OFFSET,
		   PUT_CHAR	=>PUT_CHAR);

   Can someone explain the last three lines of the above?

   Assuming that CONSOLE-IO is really CONSOLE_IO, what it means is
that the locally visible routines or variables named
GET_SERIAL_VECTOR_OFFSET and PUT_CHAR are matched to the generic
formal parameters of the same name in CONSOLE_IO.  To say more I would
need to see the entire enclosing package AND the declaration of
CONSOLE_IO.  (But when you look at them it should become obvious.)

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...

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

* Re: serial port, console IO
@ 1992-10-29 16:36 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!falis
  0 siblings, 0 replies; 3+ messages in thread
From: cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!falis @ 1992-10-29 16:36 UTC (permalink / raw)


The first param is used to determine the interrupt vector containing
the address of the isr for incoming serial port interrupts.  It's
an actual subprogram parameter.  If you look at the argument routine
given, you'll see that it's an interfaced routine whose body is
defined in the user bsp (uscodxxx.asm).

Similarly, the second parameter you mention another actual suprogram
parameter for a routine to put a single byte to the serial device.
This interfaces into a routine that is also in the user BSP (in
the instantiation given).

- Ed Falis, Alsys Inc

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

end of thread, other threads:[~1992-10-29 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-10-28 21:25 serial port, console IO Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1992-10-29 16:36 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!falis
1992-10-28 16:12 cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!u

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