mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-03 07:39:02 +01:00
RP2040: Add xPortIsInsideInterrupt to match other ARM ports (#1356)
Co-authored-by: graham sanderson <graham.sanderson@raspeberryi.com>
This commit is contained in:
parent
1dbc77697f
commit
c53a6b0547
@ -149,6 +149,10 @@ extern void vPortYield( void );
|
|||||||
__asm volatile ( "mrs %0, IPSR" : "=r" ( ulIPSR )::); \
|
__asm volatile ( "mrs %0, IPSR" : "=r" ( ulIPSR )::); \
|
||||||
( ( uint8_t ) ulIPSR ) > 0; } )
|
( ( uint8_t ) ulIPSR ) > 0; } )
|
||||||
|
|
||||||
|
/* Use #define rather than inline method to make it easier for user code
|
||||||
|
* to work with kernel versions both with and without xPortIsInsideInterrupt */
|
||||||
|
#define xPortIsInsideInterrupt() ((BaseType_t)portCHECK_IF_IN_ISR())
|
||||||
|
|
||||||
void vYieldCore( int xCoreID );
|
void vYieldCore( int xCoreID );
|
||||||
#define portYIELD_CORE( a ) vYieldCore( a )
|
#define portYIELD_CORE( a ) vYieldCore( a )
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user