Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
armVIC.c File Reference
#include "types.h"
#include "armVIC.h"
+ Include dependency graph for armVIC.c:

Go to the source code of this file.

Macros

#define IRQ_MASK   0x00000080
 
#define FIQ_MASK   0x00000040
 
#define INT_MASK   (IRQ_MASK | FIQ_MASK)
 

Functions

static unsigned __get_cpsr (void)
 
static void __set_cpsr (unsigned val)
 
unsigned disableIRQ (void)
 
unsigned restoreIRQ (unsigned oldCPSR)
 
unsigned enableIRQ (void)
 
unsigned disableFIQ (void)
 
unsigned restoreFIQ (unsigned oldCPSR)
 
unsigned enableFIQ (void)
 

Macro Definition Documentation

#define FIQ_MASK   0x00000040

Definition at line 18 of file armVIC.c.

Referenced by disableFIQ(), enableFIQ(), and restoreFIQ().

#define INT_MASK   (IRQ_MASK | FIQ_MASK)

Definition at line 19 of file armVIC.c.

#define IRQ_MASK   0x00000080

Definition at line 17 of file armVIC.c.

Referenced by disableIRQ(), enableIRQ(), and restoreIRQ().

Function Documentation

static unsigned __get_cpsr ( void  )
inlinestatic

Definition at line 21 of file armVIC.c.

Referenced by disableFIQ(), disableIRQ(), enableFIQ(), enableIRQ(), restoreFIQ(), and restoreIRQ().

+ Here is the caller graph for this function:

static void __set_cpsr ( unsigned  val)
inlinestatic

Definition at line 28 of file armVIC.c.

References val.

Referenced by disableFIQ(), disableIRQ(), enableFIQ(), enableIRQ(), restoreFIQ(), and restoreIRQ().

+ Here is the caller graph for this function:

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: