From 1e6c81718d4cc138433372141852d0ee53cea1f1 Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Wed, 28 Jan 2009 11:08:01 +0000 Subject: [PATCH] Add in the portYIELD_FROM_ISR() function. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@627 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/portable/IAR/V850ES_Fx3/portmacro.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/portable/IAR/V850ES_Fx3/portmacro.h b/Source/portable/IAR/V850ES_Fx3/portmacro.h index 4beee153b..55a802b13 100644 --- a/Source/portable/IAR/V850ES_Fx3/portmacro.h +++ b/Source/portable/IAR/V850ES_Fx3/portmacro.h @@ -130,6 +130,9 @@ extern void portRESTORE_CONTEXT( void ); //#define portYIELD() vPortYield() #define portYIELD() __asm ( "trap 0" ) #define portNOP() __asm ( "NOP" ) +extern void vTaskSwitchContext( void ); +#define portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) if( xHigherPriorityTaskWoken ) vTaskSwitchContext(); + /*-----------------------------------------------------------*/ /* Hardwware specifics. */ -- 2.39.2