aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-12-29 11:38:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-12-29 11:38:21 +0000
commit796f13d4fa6befdf9e524306d764a3f1483ab8f1 (patch)
treeaae00459209e7ef30ee8a2259e1cd48cd879deca /ports
parent698eb25d0632a0261dac7b0b3e3e9ae0f787768e (diff)
downloadChibiOS-796f13d4fa6befdf9e524306d764a3f1483ab8f1.tar.gz
ChibiOS-796f13d4fa6befdf9e524306d764a3f1483ab8f1.tar.bz2
ChibiOS-796f13d4fa6befdf9e524306d764a3f1483ab8f1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@557 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r--ports/ARMCM3/chcore.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ports/ARMCM3/chcore.h b/ports/ARMCM3/chcore.h
index 30679e495..212c994de 100644
--- a/ports/ARMCM3/chcore.h
+++ b/ports/ARMCM3/chcore.h
@@ -23,9 +23,17 @@
/*
* Port-related configuration parameters.
*/
+#ifndef BASEPRI_USER
#define BASEPRI_USER 0 /* User level BASEPRI, 0 = disabled. */
+#endif
+
+#ifndef BASEPRI_KERNEL
#define BASEPRI_KERNEL 0x10 /* BASEPRI level within kernel lock. */
+#endif
+
+#ifndef ENABLE_WFI_IDLE
#define ENABLE_WFI_IDLE 0 /* Enables the use of the WFI ins. */
+#endif
/*
* Macro defining the ARM Cortex-M3 architecture.
@@ -118,7 +126,9 @@ typedef struct {
asm volatile ("svc #0" : : "r" (_otp), "r" (_ntp)); \
}
-#define INT_REQUIRED_STACK 0
+#ifndef INT_REQUIRED_STACK
+#define INT_REQUIRED_STACK 0x10
+#endif
/*
* Enforces a 32 bit alignment for a stack area size value.