mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add in the portYIELD_FROM_ISR() function.
This commit is contained in:
parent
4555f696a8
commit
0adf3d96c4
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue