mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Convert the CCS4 MSP430X port layer to permit large and small data models, and large and small code models.
This commit is contained in:
parent
2c894e0f55
commit
9a24d4a37f
4 changed files with 155 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue