From: Armin <ArminSchmidle@swol.de>
Subject: Ada83 and Ada95 interrupt handling
Date: 1999/02/23
Date: 1999-02-23T00:00:00+00:00 [thread overview]
Message-ID: <36D303B8.B1AB9A49@swol.de> (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
next reply other threads:[~1999-02-23 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-23 0:00 Armin [this message]
1999-02-23 0:00 ` Ada83 and Ada95 interrupt handling John Herro
1999-02-24 0:00 ` Matthew Heaney
1999-02-24 0:00 ` robert_dewar
1999-03-05 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox