From d8bab825bc0c8dff8eaceb2bbb5a75ba91fc8e94 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sat, 26 Mar 2011 19:07:38 +0000 Subject: [PATCH] Add a portNOP() implementation and relax the stack alignment requirements in the IAR MSP430X port layer. --- Source/portable/IAR/MSP430X/portmacro.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/portable/IAR/MSP430X/portmacro.h b/Source/portable/IAR/MSP430X/portmacro.h index faee6bd0d..0b7af26cd 100644 --- a/Source/portable/IAR/MSP430X/portmacro.h +++ b/Source/portable/IAR/MSP430X/portmacro.h @@ -141,10 +141,10 @@ extern void vPortYield( void ); /*-----------------------------------------------------------*/ /* Hardware specifics. */ -#define portBYTE_ALIGNMENT 4 +#define portBYTE_ALIGNMENT 2 #define portSTACK_GROWTH ( -1 ) #define portTICK_RATE_MS ( ( portTickType ) 1000 / configTICK_RATE_HZ ) -#define portNOP() +#define portNOP() __no_operation() /*-----------------------------------------------------------*/ /* Task function macros as described on the FreeRTOS.org WEB site. */