]> git.sur5r.net Git - freertos/commitdiff
Add in the portYIELD_FROM_ISR() function.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 28 Jan 2009 11:08:01 +0000 (11:08 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 28 Jan 2009 11:08:01 +0000 (11:08 +0000)
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

index 4beee153b3830bae1a089e1585f55e7b5bb68019..55a802b13589ba1a84335317b07ebefc464d1b62 100644 (file)
@@ -130,6 +130,9 @@ extern void portRESTORE_CONTEXT( void );
 //#define portYIELD()  vPortYield()\r
 #define portYIELD()    __asm ( "trap 0" )\r
 #define portNOP()      __asm ( "NOP" )\r
+extern void vTaskSwitchContext( void );\r
+#define portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) if( xHigherPriorityTaskWoken ) vTaskSwitchContext();\r
+\r
 /*-----------------------------------------------------------*/\r
 \r
 /* Hardwware specifics. */\r