home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / ada / 2219 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.7 KB

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