avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Interrupt Handling


From: Torsten Hahn
Subject: [avr-gcc-list] Interrupt Handling
Date: Fri, 14 Dec 2001 14:18:47 +0100

Hi,

can i write my own function with all the things that an interrupt handler 
makes (save the SREG etc.) ?
I want to have something like:

SIGNAL(SIG_OVERFOLW0) { ... code ...}
SIGNAL(MySignal){... other code ...}

wich results in an function with all the stuff a "normal" interrupt handler 
does. And then, in the programm, "switch" from one handler for the 
SIG_OVERFOLW0 interrupt to the other one by writing the address of MySignal 
to the interrupt vector table;

Is this possible ? And how i have to define MySignal ?

CU,
Torsten.
-- 
Torsten Hahn 
TU Bergakademie Freiberg - Institut f├╝r Experimentelle Physik 
Silbermannstra├če 1, 09596 Freiberg
mail: address@hidden
phone: +49 3731 392670 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]