[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Avr-libc-corelib] Interrupt Handlers
From: |
Jan Waclawek |
Subject: |
Re: [Avr-libc-corelib] Interrupt Handlers |
Date: |
Wed, 23 Sep 2009 20:07:12 +0200 |
On Wed, 23 Sep 2009 10:44:59 -0500
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
Can you please provide examples?
> Having a first come first served policy will not work.
Why not?
> 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 see no problem with having alternatives: lightweight, heavyweight, let the
user choose what he wants.
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