From: richardbarry Date: Fri, 9 Sep 2011 20:37:50 +0000 (+0000) Subject: Add warnings about mixing untested memory models in the RL78 port. X-Git-Tag: V7.0.2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14395b332d23c145513beeba580d4a0b39c79efe;p=freertos Add warnings about mixing untested memory models in the RL78 port. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1594 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/IAR/RL78/portmacro.h b/Source/portable/IAR/RL78/portmacro.h index 301cc1de6..356700524 100644 --- a/Source/portable/IAR/RL78/portmacro.h +++ b/Source/portable/IAR/RL78/portmacro.h @@ -74,6 +74,14 @@ extern "C" { *----------------------------------------------------------- */ +#if __DATA_MODEL__ == __DATA_MODEL_FAR__ && __CODE_MODEL__ == __CODE_MODEL_NEAR__ + #warning This port has not been tested with your selected memory model combination. If a far data model is required it is recommended to also use a far code model. +#endif + +#if __DATA_MODEL__ == __DATA_MODEL_NEAR__ && __CODE_MODEL__ == __CODE_MODEL_FAR__ + #warning This port has not been tested with your selected memory model combination. If a far code model is required it is recommended to also use a far data model. +#endif + /* Type definitions. */ #define portCHAR char