|
From: | Ruddick Lawrence |
Subject: | Re: [Avr-libc-corelib] Interrupt Handlers |
Date: | Wed, 23 Sep 2009 13:42:33 -0700 |
On Wed, 23 Sep 2009 10:44:59 -0500Can you please provide examples?
Mike Perks <address@hidden> wrote:
> One of the issues that will need to handled (intentional pun) by the
> library is ISRs. There are several use cases to consider:
>
> 1. Library module wants to use an ISR
> 2. User wants to use an ISR
> 3. User wants to use an ISR but it is used by a library module
> 4. Two library APIs (presumably from different modules) both want to use
> the same ISR
Why not?
> Having a first come first served policy will not work.
I see no problem with having alternatives: lightweight, heavyweight, let the user choose what he wants.
> We probably need
> to provide a way to have hooks such as a callback. The problem is that
> this could be too heavyweight for what is supposed to be a fast response.
>
I repeat myself: I anticipate the user will copy files to his project and possibly modify. I can't even imagine how could a pre-build library be less than cumbersome.
JW
[Prev in Thread] | Current Thread | [Next in Thread] |