ihndlr.h File Reference

Go to the source code of this file.

Defines

#define IRQ_ENTRY()
#define IRQ_EXIT()

Typedefs

typedef void(* __int_handler )(void)
 Pointer to interrupt handler.

Functions

void register_interrupt (__int_handler handler, unsigned int irq, unsigned int int_lev)


Define Documentation

 
#define IRQ_ENTRY (  ) 

Value:

{                                                                                           \
    /* Prevent preempted interrupts disabling global interrupts */                          \
    __asm__ __volatile__ ("ssrf\t%0; nop; nop" :: "i" (AVR32_SR_GM_OFFSET) : "memory");     \
                                                                                            \
    /* Save R0..R7. Other registers are saved by the CPU if __AVR32_UC__ */                 \
    /* Or by exception.S if __AVR32_AP7000__ */                                             \
    __asm__ __volatile__ ("pushm r0-r7");                                                   \
}

Definition at line 71 of file ihndlr.h.

 
#define IRQ_EXIT (  ) 

Value:

{                                                                                           \
    /* Restore R0..R7 */                                                                    \
    __asm__ __volatile__ ("popm r0-r7");                                                    \
                                                                                            \
    /* Prevent preempted interrupts disabling global interrupts */                          \
    __asm__ __volatile__ ("csrf\t%0" :: "i" (AVR32_SR_GM_OFFSET) : "memory");               \
}

Definition at line 82 of file ihndlr.h.


Typedef Documentation

typedef void(* __int_handler)(void)

Pointer to interrupt handler.

Definition at line 55 of file ihndlr.h.


Function Documentation

void register_interrupt ( __int_handler  handler,
unsigned int  irq,
unsigned int  int_lev 
)


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/