comp.lang.ada
 help / color / mirror / Atom feed
From: Ed Falis <falis@ma.aonix.com>
Subject: Re: question about COM2
Date: 2000/01/07
Date: 2000-01-07T00:00:00+00:00	[thread overview]
Message-ID: <85536i$t3n$1@nnrp1.deja.com> (raw)
In-Reply-To: 3874C02F.53CE5769@hotmail.com

In article <3874C02F.53CE5769@hotmail.com>,
  Alexander Van Hecke <alexke@hotmail.com> wrote:
  I don't know what the Interrupt_ID is for serial
> communication : in the function Attach_Handler you must pass your
> interrupt handler routine and the interrupt ID.  I don't know what this
> is for serial communication, and when I look on the internet, I only
> find examples in C (interrupt ID for serial port is 0xC or 0xB or
> something like that : it doesn't work in Ada).

On PC's I think com1 is usually IRQ4 and com2 IRQ3, corresponding to
0xC and 0xB

In Ada you can define the int_id you're using in Attach_Handler as:

Int_Id: constant := 16#B#;   -- Com2 on IRQ3 = INTB

or

Int_Id: constant := 16#C#  -- for Com1 on IRQ4

- Ed


Sent via Deja.com http://www.deja.com/
Before you buy.




      parent reply	other threads:[~2000-01-07  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-06  0:00 question about COM2 Alexander Van Hecke
2000-01-07  0:00 ` Ed Falis
2000-01-07  0:00 ` more information on OS and compiler Alexander Van Hecke
2000-01-11  0:00   ` Alfred Hilscher
2000-01-07  0:00 ` Ed Falis [this message]
replies disabled

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