summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-18 16:21:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-18 16:21:37 +0000
commit3800bf5b0ebc28e22d3eb9fd3dfec373d5ed2196 (patch)
tree1b0c382ed468e4acd68c9b59d9c6e5db0a1606c2
parent0fa834d4332608374852575437d2714f820868c4 (diff)
downloadnuttx-3800bf5b0ebc28e22d3eb9fd3dfec373d5ed2196.tar.gz
nuttx-3800bf5b0ebc28e22d3eb9fd3dfec373d5ed2196.tar.bz2
nuttx-3800bf5b0ebc28e22d3eb9fd3dfec373d5ed2196.zip
file was unfinished
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1788 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/arch/arm/src/common/cortexm3_psr.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/nuttx/arch/arm/src/common/cortexm3_psr.h b/nuttx/arch/arm/src/common/cortexm3_psr.h
index 1ea3c85e6..9f7d2cc72 100644
--- a/nuttx/arch/arm/src/common/cortexm3_psr.h
+++ b/nuttx/arch/arm/src/common/cortexm3_psr.h
@@ -50,39 +50,39 @@
/* Application Program Status Register (APSR) */
-#define CORTEXM3_APSR_Q (1 << 27) /* Bit 27: Sticky saturation flag */
-#define CORTEXM3_APSR_V (1 << 28) /* Bit 28: Overflow flag */
-#define CORTEXM3_APSR_C (1 << 29) /* Bit 29: Carry/borrow flag */
-#define CORTEXM3_APSR_Z (1 << 30) /* Bit 30: Zero flag */
-#define CORTEXM3_APSR_N (1 << 31) /* Bit 31: Negative, less than flag */
+#define CORTEXM3_APSR_Q (1 << 27) /* Bit 27: Sticky saturation flag */
+#define CORTEXM3_APSR_V (1 << 28) /* Bit 28: Overflow flag */
+#define CORTEXM3_APSR_C (1 << 29) /* Bit 29: Carry/borrow flag */
+#define CORTEXM3_APSR_Z (1 << 30) /* Bit 30: Zero flag */
+#define CORTEXM3_APSR_N (1 << 31) /* Bit 31: Negative, less than flag */
/* Interrupt Program Status Register (IPSR) */
-#define CORTEMX_IPSR_ISR_SHIFT 0 /* Bits 8-0: ISR number */
-#define CORTEMX_IPSR_ISR_MASK (0x1ff << CORTEMX_IPSR_ISR_SHIFT)
+#define CORTEXM3_IPSR_ISR_SHIFT 0 /* Bits 8-0: ISR number */
+#define CORTEXM3_IPSR_ISR_MASK (0x1ff << CORTEXM3_IPSR_ISR_SHIFT)
/* Execution PSR Register (EPSR) */
-#define CORTEMX_EPSR_ICIIT1_SHIFT 10 /* Bits 15-10: Interrupt-Continuable-Instruction/If-Then bits */
-#define CORTEMX_EPSR_ICIIT1_MASK (3 << CORTEMX_EPSR_ICIIT1_SHIFT)
-#define CORTEMX_EPSR_T (1 << 24) /* Bit 24: T-bit */
-#define CORTEMX_EPSR_ICIIT2_SHIFT 25 /* Bits 26-25: Interrupt-Continuable-Instruction/If-Then bits */
-#define CORTEMX_EPSR_ICIIT2_MASK (3 << CORTEMX_EPSR_ICIIT2_SHIFT)
+#define CORTEXM3_EPSR_ICIIT1_SHIFT 10 /* Bits 15-10: Interrupt-Continuable-Instruction/If-Then bits */
+#define CORTEXM3_EPSR_ICIIT1_MASK (3 << CORTEXM3_EPSR_ICIIT1_SHIFT)
+#define CORTEXM3_EPSR_T (1 << 24) /* Bit 24: T-bit */
+#define CORTEXM3_EPSR_ICIIT2_SHIFT 25 /* Bits 26-25: Interrupt-Continuable-Instruction/If-Then bits */
+#define CORTEXM3_EPSR_ICIIT2_MASK (3 << CORTEXM3_EPSR_ICIIT2_SHIFT)
/* Save xPSR bits */
-#define CORTEMX_IPSR_ISR_SHIFT 0 /* Bits 8-0: ISR number */
-#define CORTEMX_IPSR_ISR_MASK (0x1ff << CORTEMX_IPSR_ISR_SHIFT)
-#define CORTEMX_EPSR_ICIIT1_SHIFT 25 /* Bits 15-10: Interrupt-Continuable-Instruction/If-Then bits */
-#define CORTEMX_EPSR_ICIIT1_MASK (3 << CORTEMX_EPSR_ICIIT_SHIFT)
-#define CORTEMX_EPSR_T (1 << 24) /* Bit 24: T-bit */
-#define CORTEMX_EPSR_ICIIT2_SHIFT 25 /* Bits 26-25: Interrupt-Continuable-Instruction/If-Then bits */
-#define CORTEMX_EPSR_ICIIT2_MASK (3 << CORTEMX_EPSR_ICIIT_SHIFT)
-#define CORTEXM3_APSR_Q (1 << 27) /* Bit 27: Sticky saturation flag */
-#define CORTEXM3_APSR_V (1 << 28) /* Bit 28: Overflow flag */
-#define CORTEXM3_APSR_C (1 << 29) /* Bit 29: Carry/borrow flag */
-#define CORTEXM3_APSR_Z (1 << 30) /* Bit 30: Zero flag */
-#define CORTEXM3_APSR_N (1 << 31) /* Bit 31: Negative, less than flag */
+#define CORTEXM3_XPSR_ISR_SHIFT CORTEXM3_IPSR_ISR_SHIFT
+#define CORTEXM3_XPSR_ISR_MASK CORTEXM3_IPSR_ISR_MASK
+#define CORTEXM3_XPSR_ICIIT1_SHIFT CORTEXM3_EPSR_ICIIT1_SHIFT/
+#define CORTEXM3_XPSR_ICIIT1_MASK CORTEXM3_EPSR_ICIIT1_MASK
+#define CORTEXM3_XPSR_T CORTEXM3_EPSR_T
+#define CORTEXM3_XPSR_ICIIT2_SHIFT CORTEXM3_EPSR_ICIIT2_SHIFT
+#define CORTEXM3_XPSR_ICIIT2_MASK CORTEXM3_EPSR_ICIIT2_MASK
+#define CORTEXM3_XPSR_Q CORTEXM3_APSR_Q
+#define CORTEXM3_XPSR_V CORTEXM3_APSR_V
+#define CORTEXM3_XPSR_C CORTEXM3_APSR_C
+#define CORTEXM3_XPSR_Z CORTEXM3_APSR_Z
+#define CORTEXM3_XPSR_N CORTEXM3_APSR_N
/************************************************************************************
* Inline Functions