mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-30 05:46:53 +08:00
Add in the portYIELD_FROM_ISR() function.
This commit is contained in:
@ -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. */
|
||||||
|
Reference in New Issue
Block a user