Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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

#define __VIC_ADDR (   idx)    VICVectAddr##idx

Definition at line 18 of file armVIC.h.

#define __VIC_CNTL (   idx)    VICVectCntl##idx

Definition at line 17 of file armVIC.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 40 of file armVIC.h.

Referenced by adcISR0(), adcISR1(), EXTINT0_ISR(), EXTINT_ISR(), PWM_ISR(), SPI1_ISR(), spi1_ISR(), SSP_ISR(), and TIMER0_ISR().

#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.

Referenced by adcISR0(), adcISR1(), EXTINT0_ISR(), EXTINT_ISR(), PWM_ISR(), SPI1_ISR(), spi1_ISR(), SSP_ISR(), and TIMER0_ISR().

Function Documentation

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:

unsigned disableIRQ ( void  )

Definition at line 33 of file armVIC.c.

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

Referenced by flash_detect(), i2c_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:

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:

unsigned enableIRQ ( void  )

Definition at line 51 of file armVIC.c.

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

Referenced by flash_detect(), i2c_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:

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:

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: