Defines | Functions
interrupt_utils.h File Reference

Go to the source code of this file.

Defines

#define INTFUNC   __attribute__ ((interrupt("IRQ")))
#define ISR_DISABLE_NEST()
#define ISR_ENABLE_NEST()
#define ISR_ENTRY()
#define ISR_EXIT()
#define ISR_RESTORE()
#define ISR_STORE()
#define NACKEDFUNC   __attribute__((naked))
#define RAMFUNC   __attribute__ ((long_call, section (".fastrun")))

Functions

unsigned disableFIQ (void)
unsigned disableIRQ (void)
unsigned enableFIQ (void)
unsigned enableIRQ (void)
unsigned restoreFIQ (unsigned oldCPSR)
unsigned restoreIRQ (unsigned oldCPSR)

Define Documentation

#define INTFUNC   __attribute__ ((interrupt("IRQ")))

Definition at line 60 of file Common_WinARM/inc/interrupt_utils.h.

#define ISR_DISABLE_NEST ( )
Value:
asm volatile(  \
 "LDMFD   SP!, {LR} \n" \
 "MSR     CPSR_c, #0x92 \n" \
 "LDMFD   SP!, {LR} \n" \
 "MSR     SPSR_cxsf, LR \n" )

Definition at line 129 of file Common_WinARM/inc/interrupt_utils.h.

#define ISR_ENABLE_NEST ( )
Value:
asm volatile( \
 "MRS     LR, SPSR \n"  \
 "STMFD   SP!, {LR} \n" \
 "MSR     CPSR_c, #0x1F \n" \
 "STMFD   SP!, {LR} " )

Definition at line 114 of file Common_WinARM/inc/interrupt_utils.h.

#define ISR_ENTRY ( )
Value:
asm volatile(" sub   lr, lr,#4\n" \
                                 " stmfd sp!,{r0-r12,lr}\n" \
                                 " mrs   r1, spsr\n" \
                                 " stmfd sp!,{r1}")

Definition at line 164 of file Common_WinARM/inc/interrupt_utils.h.

#define ISR_EXIT ( )
Value:
asm volatile(" ldmfd sp!,{r1}\n" \
                                 " msr   spsr_c,r1\n" \
                                 " ldmfd sp!,{r0-r12,pc}^")

Definition at line 185 of file Common_WinARM/inc/interrupt_utils.h.

#define ISR_RESTORE ( )
Value:
asm volatile( \
 "LDMIA SP!,{R0-R12,LR}\n" \
 "SUBS  R15,R14,#0x0004\n" )

Definition at line 101 of file Common_WinARM/inc/interrupt_utils.h.

#define ISR_STORE ( )
Value:
asm volatile( \
 "STMDB SP!,{R0-R12,LR}\n" )

Definition at line 85 of file Common_WinARM/inc/interrupt_utils.h.

#define NACKEDFUNC   __attribute__((naked))

Definition at line 70 of file Common_WinARM/inc/interrupt_utils.h.

#define RAMFUNC   __attribute__ ((long_call, section (".fastrun")))

Definition at line 48 of file Common_WinARM/inc/interrupt_utils.h.


Function Documentation

unsigned disableFIQ ( void  )

Definition at line 59 of file Common_WinARM/src/interrupt_utils.c.

unsigned disableIRQ ( void  )

Definition at line 32 of file Common_WinARM/src/interrupt_utils.c.

unsigned enableFIQ ( void  )

Definition at line 77 of file Common_WinARM/src/interrupt_utils.c.

unsigned enableIRQ ( void  )

Definition at line 50 of file Common_WinARM/src/interrupt_utils.c.

unsigned restoreFIQ ( unsigned  oldCPSR)

Definition at line 68 of file Common_WinARM/src/interrupt_utils.c.

unsigned restoreIRQ ( unsigned  oldCPSR)

Definition at line 41 of file Common_WinARM/src/interrupt_utils.c.



asctec_hl_firmware
Author(s): Markus Achtelik, Michael Achtelik, Stephan Weiss, Laurent Kneip
autogenerated on Tue Dec 17 2013 11:39:27