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 INTFUNC __attribute__ ((interrupt("IRQ"))) |
Definition at line 60 of file interrupt_utils.h.
#define ISR_DISABLE_NEST | ( | ) |
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 interrupt_utils.h.
#define ISR_ENABLE_NEST | ( | ) |
asm volatile( \ "MRS LR, SPSR \n" \ "STMFD SP!, {LR} \n" \ "MSR CPSR_c, #0x1F \n" \ "STMFD SP!, {LR} " )
Definition at line 114 of file interrupt_utils.h.
#define ISR_ENTRY | ( | ) |
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 interrupt_utils.h.
#define ISR_EXIT | ( | ) |
asm volatile(" ldmfd sp!,{r1}\n" \ " msr spsr_c,r1\n" \ " ldmfd sp!,{r0-r12,pc}^")
Definition at line 185 of file interrupt_utils.h.
#define ISR_RESTORE | ( | ) |
asm volatile( \ "LDMIA SP!,{R0-R12,LR}\n" \ "SUBS R15,R14,#0x0004\n" )
Definition at line 101 of file interrupt_utils.h.
#define ISR_STORE | ( | ) |
asm volatile( \ "STMDB SP!,{R0-R12,LR}\n" )
Definition at line 85 of file interrupt_utils.h.
#define NACKEDFUNC __attribute__((naked)) |
Definition at line 70 of file interrupt_utils.h.
#define RAMFUNC __attribute__ ((long_call, section (".fastrun"))) |
Definition at line 48 of file interrupt_utils.h.
unsigned disableFIQ | ( | void | ) |
Definition at line 59 of file interrupt_utils.c.
unsigned disableIRQ | ( | void | ) |
Definition at line 32 of file interrupt_utils.c.
unsigned enableFIQ | ( | void | ) |
Definition at line 77 of file interrupt_utils.c.
unsigned enableIRQ | ( | void | ) |
Definition at line 50 of file interrupt_utils.c.
unsigned restoreFIQ | ( | unsigned | oldCPSR | ) |
Definition at line 68 of file interrupt_utils.c.
unsigned restoreIRQ | ( | unsigned | oldCPSR | ) |
Definition at line 41 of file interrupt_utils.c.