Add in the portYIELD_FROM_ISR() function.

This commit is contained in:
Richard Barry 2009-01-28 11:08:01 +00:00
parent 4555f696a8
commit 0adf3d96c4

View file

@ -130,6 +130,9 @@ extern void portRESTORE_CONTEXT( void );
//#define portYIELD() vPortYield() //#define portYIELD() vPortYield()
#define portYIELD() __asm ( "trap 0" ) #define portYIELD() __asm ( "trap 0" )
#define portNOP() __asm ( "NOP" ) #define portNOP() __asm ( "NOP" )
extern void vTaskSwitchContext( void );
#define portYIELD_FROM_ISR( xHigherPriorityTaskWoken ) if( xHigherPriorityTaskWoken ) vTaskSwitchContext();
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* Hardwware specifics. */ /* Hardwware specifics. */