Start to adjust to support both small and large memory models in the MSP430X IAR port layer.

This commit is contained in:
Richard Barry 2011-01-03 11:31:41 +00:00
parent 19fcd2d505
commit d195639bc1
4 changed files with 92 additions and 55 deletions

View file

@ -73,9 +73,15 @@
#define portDOUBLE double
#define portLONG long
#define portSHORT int
#define portSTACK_TYPE unsigned portLONG
#define portBASE_TYPE portSHORT
/* The stack type changes depending on the data model. */
#if( __DATA_MODEL__ == __DATA_MODEL_SMALL__ )
#define portSTACK_TYPE unsigned short
#else
#define portSTACK_TYPE unsigned long
#endif
#if( configUSE_16_BIT_TICKS == 1 )
typedef unsigned portSHORT portTickType;
#define portMAX_DELAY ( portTickType ) 0xffff