summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc17xx/chip.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-06-06 17:11:15 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-06-06 17:11:15 +0000
commitf8510a60411dd63a653e95a5de2c4645678fbdc0 (patch)
tree7ffdefbd97e9fb952a4c16028f2311fa825db763 /nuttx/arch/arm/src/lpc17xx/chip.h
parent1ab05e72f8d1ce1a800c4243553dbb6c882cb46b (diff)
downloadpx4-nuttx-f8510a60411dd63a653e95a5de2c4645678fbdc0.tar.gz
px4-nuttx-f8510a60411dd63a653e95a5de2c4645678fbdc0.tar.bz2
px4-nuttx-f8510a60411dd63a653e95a5de2c4645678fbdc0.zip
Add interrupt control logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2733 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/chip.h')
-rwxr-xr-xnuttx/arch/arm/src/lpc17xx/chip.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/chip.h b/nuttx/arch/arm/src/lpc17xx/chip.h
index 0a921c4cf..90e3c422f 100755
--- a/nuttx/arch/arm/src/lpc17xx/chip.h
+++ b/nuttx/arch/arm/src/lpc17xx/chip.h
@@ -168,6 +168,16 @@
#include "lpc17_memorymap.h"
+/* NVIC priority levels *************************************************************/
+/* Each priority field holds a priority value, 0-31. The lower the value, the greater
+ * the priority of the corresponding interrupt. The processor implements only
+ * bits[7:3] of each field, bits[2:0] read as zero and ignore writes.
+ */
+
+#define NVIC_SYSH_PRIORITY_MIN 0xf8 /* All bits[7:3] set is minimum priority */
+#define NVIC_SYSH_PRIORITY_DEFAULT 0x80 /* Midpoint is the default */
+#define NVIC_SYSH_PRIORITY_MAX 0x00 /* Zero is maximum priority */
+
/************************************************************************************
* Public Types
************************************************************************************/