From 796f13d4fa6befdf9e524306d764a3f1483ab8f1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 29 Dec 2008 11:38:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@557 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARMCM3/chcore.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ports') 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. -- cgit v1.2.3