File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,14 @@ static void prvTaskExitError( void );
144
144
145
145
/*-----------------------------------------------------------*/
146
146
147
+
148
+ /*
149
+ * Used to determine if the port is in an interrupt.
150
+ */
151
+ __attribute__((always_inline )) static BaseType_t xPortIsInsideInterrupt ( void )
152
+
153
+ /*-----------------------------------------------------------*/
154
+
147
155
/* Records the interrupt nesting depth. This is initialised to one as it is
148
156
decremented to 0 when the first task starts. */
149
157
volatile UBaseType_t uxInterruptNesting = 0x01 ;
@@ -219,6 +227,7 @@ static void prvTaskExitError( void )
219
227
portDISABLE_INTERRUPTS ();
220
228
for ( ;; );
221
229
}
230
+
222
231
/*-----------------------------------------------------------*/
223
232
224
233
/*
You can’t perform that action at this time.
0 commit comments