comp.lang.ada
 help / color / mirror / Atom feed
* Ada83 and Ada95 interrupt handling
@ 1999-02-23  0:00 Armin
  1999-02-23  0:00 ` John Herro
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Armin @ 1999-02-23  0:00 UTC (permalink / raw)


I am porting an Ada83 application to Ada95. In Ada83 there was a
construction
known as interrupt entry. Assume we have the following task (with two
interrupt
entrys from a DSP and a timer source)

 task type A_Task  is
      entry Startup;
      entry DSP_Interrupt;
      entry Timer_Interrupt;

      for DSP_Interrupt use at System.Value("16#xxxxxxxx#");
      for Timer_Interrupt use at System.Value("16#xxxxxxxx#");

      pragma Priority (Task_Priority.Of_A_Task);
 end A_Task;

 The task waits for the occurence of either the DSP or the timer
(to avoid blocking):
     ...
     ...
      select
         accept DSP_Interrupt; -- wait for interrupt of DSP
         ...
      or
         accept Timer_Interrupt; -- or of timer (to avoid blocking)
        ...
      end select;
      ...
      ...

How can I do the same thing in Ada95 ?

Thanks in advance !
Armin





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

end of thread, other threads:[~1999-03-05  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-23  0:00 Ada83 and Ada95 interrupt handling Armin
1999-02-23  0:00 ` John Herro
1999-02-24  0:00 ` Matthew Heaney
1999-02-24  0:00   ` robert_dewar
1999-03-05  0:00 ` Robert A Duff

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