Convert the CCS4 MSP430X port layer to permit large and small data models, and large and small code models.

This commit is contained in:
Richard Barry 2011-01-03 16:48:59 +00:00
parent 2c894e0f55
commit 9a24d4a37f
4 changed files with 155 additions and 44 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. */
#ifdef __LARGE_DATA_MODEL__
#define portSTACK_TYPE unsigned long
#else
#define portSTACK_TYPE unsigned short
#endif
#if( configUSE_16_BIT_TICKS == 1 )
typedef unsigned portSHORT portTickType;
#define portMAX_DELAY ( portTickType ) 0xffff