home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!lynx!nmsu.edu!opus!pat
- From: pat@summit.opus (pat gioannini)
- Subject: Re: Serial interrupt handler in Meridian Ada on PC?
- In-Reply-To: mskuhn@immd4.informatik.uni-erlangen.de's message of Thu, 23 Jul 1992 20:12:37 GMT
- Message-ID: <PAT.92Jul27074448@summit.opus>
- Sender: usenet@nmsu.edu
- Organization: /home/pat/.organization
- References: <1992Jul21.110241.15174@verdix.com>
- <Bruyt1.F0F@immd4.informatik.uni-erlangen.de>
- Date: Mon, 27 Jul 1992 14:44:47 GMT
- Lines: 35
-
- >> Perhaps the better solution is not to implement the interrupt handler
- >> in Meridian Ada but to use one of the many high quality public domain
- >> serial port drivers and write just an Ada interface. These often are
- >> written in highly optimized machine code and include also support for
- >> a large variety of serial line chips (e.g. the 16550 with 16 byte FIFO
- >> etc.). I highly recommend drivers conforming to the FOSSIL specification
- >> that evolved in the Fido community, e.g. the BNU driver.
- >>
- >> Markus
-
-
- I am wondering how well these drivers work with Ada tasking.
-
- If the interrupt handler is written in Ada then receiving a character
- available interrupt can start rendezvous with higher level task. The
- higher level task starts immediately if its priority is high enough.
-
- 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.
-
- What I am getting at it the latency between receiving a character and actually
- processing it can be quite large with foreign language device drivers that
- do not interact with the Ada runtime system. It depends on the application
- whether this is bad or not. Using a comercial package can save a lot of
- time. I wish device drivers for serial ports and such written in Ada were
- more commonly available.
-
-
- pat
- pat@psl.nmsu.edu
- --
- pat gioannini
- pat@psl.nmsu.edu
-
-