* interrupt handling
@ 2001-09-07 19:23 mop
0 siblings, 0 replies; 5+ messages in thread
From: mop @ 2001-09-07 19:23 UTC (permalink / raw)
there's this business called pragma Attach_Handler and as such I was told to
use this to implement my interrupt handling. so now here's what i wnat to
do;
1. when i send a "certain" command (based on user selection) as part of my
data (serial) stream
2. i want to wait 200 ms for the device on the other end to respond with
interrupt
3. if i get said interrupt within 200ms I need to synchronize with
interrupt and send "certain" command again... now keep doing that.
4. if i DONT get interrupt within 200ms of wait from device on other end.
send certain command again. if yet again no from "certain" command. send a
different command.
Here's what i got but I dont know how to tie (1-4) above into this (below)
so now in my spec.
pragma Attach_Handler(IIOF2_Interrupt, Interrupt_Names.IIOF2,
Handler_CS_NT);
in the body
procedure IIOF2_Interrupt is
pragma SUPPRESS(Storage_Check);
begin
-- clear interrupt with whatever hardware using.
exception
when others =>
-- exception handler here
end IIOF2_Interrupt;
^ permalink raw reply [flat|nested] 5+ messages in thread
* interrupt handling
@ 2014-10-30 14:39 salimsajad
2014-10-30 20:28 ` Jacob Sparre Andersen
0 siblings, 1 reply; 5+ messages in thread
From: salimsajad @ 2014-10-30 14:39 UTC (permalink / raw)
Hi
I need a sample code which demonstrates interrupt handling for ada. I am using a powerpc bareboard with greenhils Adamulti compiler. Thanks in advance.
Salim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: interrupt handling
2014-10-30 14:39 salimsajad
@ 2014-10-30 20:28 ` Jacob Sparre Andersen
2014-10-31 5:45 ` salimsajad
0 siblings, 1 reply; 5+ messages in thread
From: Jacob Sparre Andersen @ 2014-10-30 20:28 UTC (permalink / raw)
salimsajad@gmail.com writes:
> I need a sample code which demonstrates interrupt handling for ada. I
> am using a powerpc bareboard with greenhils Adamulti compiler. Thanks
> in advance.
There is one in the Ada Reference Manual, C.3.2(28/3).
Greetings,
Jacob
--
"Those who will not reason, are bigots,
those who cannot, are fools, and
those who dare not, are slaves."
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-31 20:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-07 19:23 interrupt handling mop
-- strict thread matches above, loose matches on Subject: below --
2014-10-30 14:39 salimsajad
2014-10-30 20:28 ` Jacob Sparre Andersen
2014-10-31 5:45 ` salimsajad
2014-10-31 20:57 ` Tero Koskinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox