comp.lang.ada
 help / color / mirror / Atom feed
From: destroyer!cs.ubc.ca!utcsri!newsflash.concordia.ca!nstn.ns.ca!jmacleod@han dies.ucar.edu  (James Mac Leod)
Subject: Re: Interrupts
Date: 23 Feb 93 12:42:05 GMT	[thread overview]
Message-ID: <jmacleod.79@fox.nstn.ns.ca> (raw)

In article <1993Feb17.161508.30722@iitmax.iit.edu> LEDUC@chico.acc.iit.edu (USE
RS) writes:
>Hi everyone,

>I'm working on an ada application requiring the use of interrupts.
>I understand you can use tasks to trap interrupts, but haven't
>tested it.

>task service is
>  entry ISR;
>  for ISR use at 16#xxx#;
>end service;

>My question is: instead of using the overhead of tasks, is it
>possible to tie the interrupt directly to a procedure?

>procedure ISR is
>end ISR;
>for ISR use at 16#xxx#;

>Any advice or comments is appreciated. Thanks in advance.

>Duc Le
>email:
>led@sunfs1.dsd.northrop.com

I don't think the procedure would work.  All task gets activated when the 
mainline program gets activated.  Therefore it is actually waiting for 
something to happen at 16#xxx#.  A procedure is only active during its 
lifecycle.  Once the procedure has completed it needs some other procedure 
to activate it and cannot be activated beyond a procedural call.
Micronav International Inc
P.O.Box 1523 / 104 Marine Drive
Sydport Industrial Park,
Sydney, N.S. Canada B1P 6R7
Tel: 902-564-8833      Fax: 902-564-8764

             reply	other threads:[~1993-02-23 12:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-02-23 12:42 destroyer!cs.ubc.ca!utcsri!newsflash.concordia.ca!nstn.ns.ca!jmacleod [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-01-07 20:52 Interrupts Szygula
2001-01-08 13:48 ` Interrupts Andrzej Lewandowski
1993-02-23 21:30 Interrupts agate!howland.reston.ans.net!sol.ctr.columbia.edu!eff!news.oc.com!convex!
1993-02-18 21:12 Interrupts Bob Kitzberger
1993-02-18 15:07 Interrupts Dat Trie u Le
1993-02-17 16:15 Interrupts USERS
replies disabled

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