]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/portable.h
Fix warning portHAS_STACK_OVERFLOW_CHECKING not defined
[freertos] / FreeRTOS / Source / include / portable.h
index 80e743c40209f145a056dee237d19b1d94775512..aa1ee470d46d1796645369114993846865027aea 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * FreeRTOS Kernel V10.1.0\r
- * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ * FreeRTOS Kernel V10.2.0\r
+ * Copyright (C) 2019 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * this software and associated documentation files (the "Software"), to deal in\r
@@ -84,6 +84,10 @@ must be set in the compiler's include path. */
        #define portNUM_CONFIGURABLE_REGIONS 1\r
 #endif\r
 \r
+#ifndef portHAS_STACK_OVERFLOW_CHECKING\r
+       #define portHAS_STACK_OVERFLOW_CHECKING 0\r
+#endif\r
+\r
 #ifdef __cplusplus\r
 extern "C" {\r
 #endif\r
@@ -97,9 +101,17 @@ extern "C" {
  *\r
  */\r
 #if( portUSING_MPU_WRAPPERS == 1 )\r
-       StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION;\r
+       #if( portHAS_STACK_OVERFLOW_CHECKING == 1 )\r
+               StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, StackType_t *pxEndOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION;\r
+       #else\r
+               StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION;\r
+       #endif\r
 #else\r
-       StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION;\r
+       #if( portHAS_STACK_OVERFLOW_CHECKING == 1 )\r
+               StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, StackType_t *pxEndOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION;\r
+       #else\r
+               StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION;\r
+       #endif\r
 #endif\r
 \r
 /* Used by heap_5.c. */\r