From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,35b53cc203487b65,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-07 13:26:07 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!telocity-west!TELOCITY!enews.sgi.com!coop.net!newsfeed1.global.lmco.com!news.orl.lmco.com!news From: "mop" Newsgroups: comp.lang.ada Subject: interrupt handling Date: Fri, 7 Sep 2001 15:23:56 -0400 Organization: Lockheed Martin -- Information Systems Center Message-ID: <9nb6sh$3qa$1@zeus.orl.lmco.com> NNTP-Posting-Host: orlsr006538.orl.lmco.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:12914 Date: 2001-09-07T15:23:56-04:00 List-Id: 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;