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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,327a42486109b512 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.66.84.161 with SMTP id a1mr773697paz.47.1354866351528; Thu, 06 Dec 2012 23:45:51 -0800 (PST) Received: by 10.50.196.199 with SMTP id io7mr1407550igc.4.1354866351489; Thu, 06 Dec 2012 23:45:51 -0800 (PST) Path: 6ni28943pbd.1!nntp.google.com!kt20no15514473pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Dec 2012 23:45:51 -0800 (PST) In-Reply-To: <71687703-4ed2-4cbb-8996-ff973474f586@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.109.190.88; posting-account=mOyWBQoAAAD7S-NBmMUOr9hRClcL0vqR NNTP-Posting-Host: 192.109.190.88 References: <71687703-4ed2-4cbb-8996-ff973474f586@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5eecb2cc-086c-47c9-84c9-00dd5b90f9a1@googlegroups.com> Subject: Re: Interruption Handling using zfp compilation flag From: Rolf Injection-Date: Fri, 07 Dec 2012 07:45:51 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-06T23:45:51-08:00 List-Id: On Friday, December 7, 2012 1:41:34 AM UTC+1, Vin=EDcius Franchini wrote: > Hi guys, my name is Vin=EDcius and I'm doing a master degree. My thesis i= s a simplified on-board computer for an satellite. I must implement some sc= heduling and package analysis functions. As I need to work with a real time= system, I'm using the zfp flag for compilation. I tried to implement some = interruptions using sentences like this: procedure Receive_USART; -- Addres= s the interruption handler pragma Machine_Attribute (Entity =3D> Receive_US= ART, Attribute_Name =3D> "signal"); pragma Export (Convention =3D> C, Entit= y =3D> Receive_USART, External_Name =3D> "__vector_26"); --USART0_RXC Using= Proteus (ISIS Professional 6.7 SP2), I'm debugging the algorithm. The init= ialization of the interruption is right, but when the interruption occur, i= t isn't handling to the procedure. Do I need to do something more to handle= the procedure when the interruption occur ? Do you fellows have any other = simple way to handle interruptions ? Thanks very much for your help.... On Friday, December 7, 2012 1:41:34 AM UTC+1, Vin=EDcius Franchini wrote: > Hi guys, my name is Vin=EDcius and I'm doing a master degree. My thesis i= s a simplified on-board computer for an satellite. I must implement some sc= heduling and package analysis functions. As I need to work with a real time= system, I'm using the zfp flag for compilation. I tried to implement some = interruptions using sentences like this: procedure Receive_USART; -- Addres= s the interruption handler pragma Machine_Attribute (Entity =3D> Receive_US= ART, Attribute_Name =3D> "signal"); pragma Export (Convention =3D> C, Entit= y =3D> Receive_USART, External_Name =3D> "__vector_26"); --USART0_RXC Using= Proteus (ISIS Professional 6.7 SP2), I'm debugging the algorithm. The init= ialization of the interruption is right, but when the interruption occur, i= t isn't handling to the procedure. Do I need to do something more to handle= the procedure when the interruption occur ? Do you fellows have any other = simple way to handle interruptions ? Thanks very much for your help.... The syntax that you show is very specific for AVR microcontrollers. If that= 's really the case have a look at http://sourceforge.net/p/avr-ada/wiki/Interrupts/ and at the data sheet of your controller. Consider also asking on the AVR-A= da-devel mailing list. HTH Rolf