Skip to content

Commit 712d253

Browse files
committed
Add declaration before definition
1 parent 9863019 commit 712d253

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

portable/MPLAB/PIC32MZ/port.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ static void prvTaskExitError( void );
144144

145145
/*-----------------------------------------------------------*/
146146

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+
147155
/* Records the interrupt nesting depth. This is initialised to one as it is
148156
decremented to 0 when the first task starts. */
149157
volatile UBaseType_t uxInterruptNesting = 0x01;
@@ -219,6 +227,7 @@ static void prvTaskExitError( void )
219227
portDISABLE_INTERRUPTS();
220228
for( ;; );
221229
}
230+
222231
/*-----------------------------------------------------------*/
223232

224233
/*

0 commit comments

Comments
 (0)