[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Reenabling interrupts in epilogue of interrupt functi
From: |
Larry Barello |
Subject: |
Re: [avr-gcc-list] Reenabling interrupts in epilogue of interrupt function |
Date: |
Fri, 23 Aug 2002 07:18:54 -0700 |
Use the "signal" attribute.
Best to use the #defines in the file "sig-avr.h"
Cheers!
----- Original Message -----
From: "Christian Troedhandl" <address@hidden>
>
> If the following code is compiled with
> 'avr-gcc -O0 -mmcu=atmega103 -S test.c' (I use version 3.2.0 (20020708)
> ----------------------------------------
> #include <io.h>
>
...>
> The problem with this is, that the interrupt is not reenabled after
> updating the stack pointer, and so interrupts are blocked for 41
> clock ticks, which is not acceptable for our purposes.
>
> Is there a possibility to tell the compiler to insert a 'sei'
> instruction after the 'out __SP_H__,r29' instruction, like it is done in
> the prologue of the function?
avr-gcc-list at http://avr1.org