diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-22 14:37:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-22 14:37:17 +0000 |
commit | 9375b285f28c3636edab8bc60540f156aa11eaf7 (patch) | |
tree | 3dd51c0f8e6e1c0a5804b84e7018e7044c484a06 /nuttx/arch/arm/include/armv7-m/irq_cmnvector.h | |
parent | 4742f55507b6e1392f459a2c228efb75b567b62e (diff) | |
download | px4-firmware-9375b285f28c3636edab8bc60540f156aa11eaf7.tar.gz px4-firmware-9375b285f28c3636edab8bc60540f156aa11eaf7.tar.bz2 px4-firmware-9375b285f28c3636edab8bc60540f156aa11eaf7.zip |
More logic to use BASEPRI to control interrupts -- still doesn't work
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5547 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/include/armv7-m/irq_cmnvector.h')
-rw-r--r-- | nuttx/arch/arm/include/armv7-m/irq_cmnvector.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/arch/arm/include/armv7-m/irq_cmnvector.h b/nuttx/arch/arm/include/armv7-m/irq_cmnvector.h index e646731eb..bc67004ed 100644 --- a/nuttx/arch/arm/include/armv7-m/irq_cmnvector.h +++ b/nuttx/arch/arm/include/armv7-m/irq_cmnvector.h @@ -51,7 +51,11 @@ */ #define REG_R13 (0) /* R13 = SP at time of interrupt */ -#define REG_PRIMASK (1) /* PRIMASK */ +#ifdef CONFIG_ARMV7M_USEBASEPRI +# define REG_BASEPRI (1) /* BASEPRI */ +#else +# define REG_PRIMASK (1) /* PRIMASK */ +#endif #define REG_R4 (2) /* R4 */ #define REG_R5 (3) /* R5 */ #define REG_R6 (4) /* R6 */ |