comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: How to emulate multiple exports
Date: Tue, 21 Apr 2020 08:58:21 +0100
Date: 2020-04-21T08:58:21+01:00	[thread overview]
Message-ID: <ly5zdtgtia.fsf@pushface.org> (raw)
In-Reply-To: 177496b2-378f-483e-aa67-4b221a531fc6@googlegroups.com

Jere <jhb.chat@gmail.com> writes:

> On Monday, April 20, 2020 at 5:57:06 AM UTC-4, Simon Wright wrote:
>> Jere  writes:
>> 
>> > I am working in a space constrained environment (256k flash)
>> > and I want to try and reuse the same exported function for
>> > all of my unused interrupt handlers.
>> 
>> I don't know if it'll help, but I handle a similar problem in Cortex
>> GNAT RTS starting here:
>> 
>> https://github.com/simonjwright/cortex-gnat-rts/blob/master/stm32f4/adainclude/startup.adb#L147
>
> That looks closer to what I was trying.  Out of curiosity, how
> does it handle someone wanting to later on assign a specific
> peripheral ISR (like a timer for example)?  It looks like
> all the remaining ISR slots use the same external 
> symbol (IRQ_Handler)

It doesn't. Of course it could (write to the interrupt vector & set the
hardware interrupt priority in NVIC), but you wouldn't then be able to
use a protected handler. I don't think you'd want to? the reason for
having a specific handler would be for performance, e.g. drone motor
electronic speed control.

  reply	other threads:[~2020-04-21  7:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-19 23:53 How to emulate multiple exports Jere
2020-04-20  6:27 ` Egil H H
2020-04-20 20:48   ` Jere
2020-04-20  6:52 ` Jeffrey R. Carter
2020-04-20 20:51   ` Jere
2020-04-20  9:57 ` Simon Wright
2020-04-20 20:57   ` Jere
2020-04-21  7:58     ` Simon Wright [this message]
2020-04-24  1:36       ` Jere
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox