home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!ukma!psuvax1!psuvm!j0s
- Organization: Penn State University
- Date: Tue, 28 Jul 1992 15:22:38 EDT
- From: Jack W. Sharer <J0S@psuvm.psu.edu>
- Message-ID: <92210.152238J0S@psuvm.psu.edu>
- Newsgroups: comp.lang.ada
- Subject: Re: Serial interrupt handler in Meridian Ada on PC?
- References: <1992Jul21.110241.15174@verdix.com>
- <Bruyt1.F0F@immd4.informatik.uni-erlangen.de> <PAT.92Jul27074448@summit.opus>
- <Bs24Is.2Ks@immd4.informatik.uni-erlangen.de>
- Lines: 26
-
- In article <Bs24Is.2Ks@immd4.informatik.uni-erlangen.de>,
- mskuhn@immd4.informatik.uni-erlangen.de (Markus Kuhn) says:
- >
- >pat@summit.opus (pat gioannini) writes:
- >
- >>I am wondering how well these drivers work with Ada tasking.
- >
- >BTW: You find some FOSSIL drivers (e.g. BNU, X00, ...) in
- >portal/pc/modem/fossil/:ftp.uni-erlangen.de.
- >
- >>If the interrupt handler is written in assembly or C or whatever and does
- >>not understand Ada tasking you are left with polling the serial driver
- >>for a character available.
- >
- >The perfect solution: The interrupt handler triggers an interrupt after
- >e.g. 64 bytes have been received of after a 0.1sec timeout, or ...
- >
- I would seem like the appropriate FOSSIL hooks are in place. I would
- install a small routine on the timer interrupt hook to peek at the
- input buffer. When a complete incoming message was available, I would
- invoke an Ada interrupt routine installed with the FOSSIL "7E" layered
- application. The interrupt routine would read the message and initiate
- down stream processing. I might want to code the timer interrupt
- routine in assembler if speed was important.
-
- BTW: Which of the two FOSSIL packages would you use? BNU or X00?
-