We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dbc776 commit c53a6b0Copy full SHA for c53a6b0
1 file changed
portable/ThirdParty/GCC/RP2040/include/portmacro.h
@@ -149,6 +149,10 @@ extern void vPortYield( void );
149
__asm volatile ( "mrs %0, IPSR" : "=r" ( ulIPSR )::); \
150
( ( uint8_t ) ulIPSR ) > 0; } )
151
152
+/* Use #define rather than inline method to make it easier for user code
153
+ * to work with kernel versions both with and without xPortIsInsideInterrupt */
154
+#define xPortIsInsideInterrupt() ((BaseType_t)portCHECK_IF_IN_ISR())
155
+
156
void vYieldCore( int xCoreID );
157
#define portYIELD_CORE( a ) vYieldCore( a )
158
0 commit comments