Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
armVIC.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __VIC_CNTL(idx)   VICVectCntl##idx
 
#define __VIC_ADDR(idx)   VICVectAddr##idx
 
#define _VIC_CNTL(idx)   __VIC_CNTL(idx)
 
#define _VIC_ADDR(idx)   __VIC_ADDR(idx)
 
#define ISR_ENTRY()
 
#define ISR_EXIT()
 

Functions

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

Macro Definition Documentation

◆ __VIC_ADDR

#define __VIC_ADDR (   idx)    VICVectAddr##idx

Definition at line 18 of file armVIC.h.

◆ __VIC_CNTL

#define __VIC_CNTL (   idx)    VICVectCntl##idx

Definition at line 17 of file armVIC.h.

◆ _VIC_ADDR

#define _VIC_ADDR (   idx)    __VIC_ADDR(idx)

Definition at line 20 of file armVIC.h.

◆ _VIC_CNTL

#define _VIC_CNTL (   idx)    __VIC_CNTL(idx)

Definition at line 19 of file armVIC.h.

◆ ISR_ENTRY

#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 40 of file armVIC.h.

◆ ISR_EXIT

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

Definition at line 61 of file armVIC.h.

Function Documentation

◆ disableFIQ()

unsigned disableFIQ ( void  )

Definition at line 60 of file armVIC.c.

References __get_cpsr(), __set_cpsr(), and FIQ_MASK.

+ Here is the call graph for this function:

◆ disableIRQ()

unsigned disableIRQ ( void  )

Definition at line 33 of file armVIC.c.

References __get_cpsr(), __set_cpsr(), and IRQ_MASK.

Referenced by flash_detect(), i2c_lpc21_submit(), pflash_erase_page(), pflash_program_array(), spi_submit(), uart_put_byte(), and VCOM_getchar().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ enableFIQ()

unsigned enableFIQ ( void  )

Definition at line 78 of file armVIC.c.

References __get_cpsr(), __set_cpsr(), and FIQ_MASK.

+ Here is the call graph for this function:

◆ enableIRQ()

unsigned enableIRQ ( void  )

Definition at line 51 of file armVIC.c.

References __get_cpsr(), __set_cpsr(), and IRQ_MASK.

Referenced by flash_detect(), i2c_lpc21_submit(), pflash_erase_page(), pflash_program_array(), spi_submit(), and VCOM_getchar().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ restoreFIQ()

unsigned restoreFIQ ( unsigned  oldCPSR)

Definition at line 69 of file armVIC.c.

References __get_cpsr(), __set_cpsr(), and FIQ_MASK.

+ Here is the call graph for this function:

◆ restoreIRQ()

unsigned restoreIRQ ( unsigned  oldCPSR)

Definition at line 42 of file armVIC.c.

References __get_cpsr(), __set_cpsr(), and IRQ_MASK.

Referenced by uart_put_byte().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: