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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2b7ee17f020e0600 X-Google-Attributes: gid103376,public From: Ed Falis Subject: Re: question about COM2 Date: 2000/01/07 Message-ID: <85536q$t3p$1@nnrp1.deja.com>#1/1 X-Deja-AN: 569447662 References: <3874C02F.53CE5769@hotmail.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 216.120.49.221 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Jan 07 16:11:20 2000 GMT X-MyDeja-Info: XMYDJUIDfalis Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (Windows NT 5.0;US) Opera 3.61 [en] Date: 2000-01-07T00:00:00+00:00 List-Id: In article <3874C02F.53CE5769@hotmail.com>, Alexander Van Hecke wrote: I don't know what the Interrupt_ID is for serial > communication : in the function Attach_Handler you must pass your > interrupt handler routine and the interrupt ID. I don't know what this > is for serial communication, and when I look on the internet, I only > find examples in C (interrupt ID for serial port is 0xC or 0xB or > something like that : it doesn't work in Ada). On PC's I think com1 is usually IRQ4 and com2 IRQ3, corresponding to 0xC and 0xB In Ada you can define the int_id you're using in Attach_Handler as: Int_Id: constant := 16#B#; -- Com2 on IRQ3 = INTB or Int_Id: constant := 16#C# -- for Com1 on IRQ4 - Ed Sent via Deja.com http://www.deja.com/ Before you buy.