mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Start to adjust to support both small and large memory models in the MSP430X IAR port layer.
This commit is contained in:
parent
19fcd2d505
commit
d195639bc1
4 changed files with 92 additions and 55 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. */
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue