I think I'm talking about using "ISR_NAKED" as an attribute, but how do I do that?
For example, if this is my code:
>>>
ISR(PCINT0_vect)
{
if(bit_is_set(PINB,PORTB2))
{
SPCR = 0;
ui8Status = 1;
}
}
<<<
I know I'll have to end the routine with "reti(); but how do I specify the "ISR_NAKED" attribute, and how do I know if I need to save any registers?
For the code about, I would save and restore SREG but that's all I would do...
Thanks,
Cat
> To: avr-chat@yahoogroups.com
> From: catalin_cluj@hotmail.com
> Date: Wed, 20 Jan 2010 14:06:54 -0700
> Subject: [AVR-Chat] Any way to make interrupts faster, please?
>
>
> Hi,
> I seem to remember that there's a way to tell the compiler to not do context saving/restoring when going into an ISR on ATMega chips (I know XMegas, etc can do it, I'm only interested in the ATMega now).
>
> Am I dreaming, or is it possible?
>
> Or is it only possible in assembly, in which case how would an assembly ISR look in the middle of C code, please?
>
> Thanks,
>
> Cat
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
[Non-text portions of this message have been removed]Message
RE: [AVR-Chat] Any way to make interrupts faster, please?
2010-01-20 by Cat C
Attachments
- No local attachments were found for this message.