From: richardbarry Date: Sun, 3 May 2009 07:51:00 +0000 (+0000) Subject: Put in "catch all" portmacro.h include to allow the path to the correct portmacro... X-Git-Tag: V5.3.0~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7d83fc5f46917918b916b796559ecd801f7cc449;p=freertos Put in "catch all" portmacro.h include to allow the path to the correct portmacro.h file to be included as a compiler option. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@718 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/include/portable.h b/Source/include/portable.h index 9dd3874d9..5fbce72c6 100644 --- a/Source/include/portable.h +++ b/Source/include/portable.h @@ -291,6 +291,16 @@ #include "../../Source/portable/IAR/78K0R/portmacro.h" #endif +/* Catch all to ensure portmacro.h is included in the build. Newer demos +have the path as part of the project options, rather than as relative from +the project location. If portENTER_CRITICAL() has not been defined then +portmacro.h has not yet been included - as every portmacro.h provides a +portENTER_CRITICAL() definition. Check the demo application for your demo +to find the path to the correct portmacro.h file. */ +#ifndef portENTER_CRITICAL + #include "portmacro.h" +#endif + #ifdef __cplusplus extern "C" { #endif @@ -299,6 +309,7 @@ extern "C" { * Setup the stack of a new task so it is ready to be placed under the * scheduler control. The registers have to be placed on the stack in * the order that the port expects to find them. + * */ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters );