From: RichardBarry Date: Wed, 28 Jan 2009 11:08:01 +0000 (+0000) Subject: Add in the portYIELD_FROM_ISR() function. X-Git-Tag: V5.1.2~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e6c81718d4cc138433372141852d0ee53cea1f1;p=freertos 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 --- 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. */