summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2019-03-13 21:10:44 +0000
committergaurav-aws <gaurav-aws@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2019-03-13 21:10:44 +0000
commit1b4029924271b2c9cce0991ad1c692cfcfe309f4 (patch)
treea2da526c63bf346d557c976cc74db4ecfaa89ea3
parent60062b72f7f837b79d00e9dc341770dd7ee813d6 (diff)
downloadfreertos-1b4029924271b2c9cce0991ad1c692cfcfe309f4.tar.gz
Fix warning portHAS_STACK_OVERFLOW_CHECKING not defined
portHAS_STACK_OVERFLOW_CHECKING was getting defined too late before being used in portable.h for the platforms that do not have stack overflow checking registers. This commit ensures that it is defined before it is used. git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2646 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r--FreeRTOS/Source/include/FreeRTOS.h4
-rw-r--r--FreeRTOS/Source/include/portable.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/FreeRTOS/Source/include/FreeRTOS.h b/FreeRTOS/Source/include/FreeRTOS.h
index 3afd3bb24..7ae621993 100644
--- a/FreeRTOS/Source/include/FreeRTOS.h
+++ b/FreeRTOS/Source/include/FreeRTOS.h
@@ -766,10 +766,6 @@ extern "C" {
#define portALLOCATE_SECURE_CONTEXT( ulSecureStackSize )
#endif
-#ifndef portHAS_STACK_OVERFLOW_CHECKING
- #define portHAS_STACK_OVERFLOW_CHECKING 0
-#endif
-
#ifndef configUSE_TIME_SLICING
#define configUSE_TIME_SLICING 1
#endif
diff --git a/FreeRTOS/Source/include/portable.h b/FreeRTOS/Source/include/portable.h
index 51ef6d641..aa1ee470d 100644
--- a/FreeRTOS/Source/include/portable.h
+++ b/FreeRTOS/Source/include/portable.h
@@ -84,6 +84,10 @@ must be set in the compiler's include path. */
#define portNUM_CONFIGURABLE_REGIONS 1
#endif
+#ifndef portHAS_STACK_OVERFLOW_CHECKING
+ #define portHAS_STACK_OVERFLOW_CHECKING 0
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif