From 45d332f972347df422a0557ed85642eaaad92d48 Mon Sep 17 00:00:00 2001 From: Kody Stribrny Date: Mon, 11 Aug 2025 13:22:43 -0700 Subject: [PATCH] Add declaration before definition --- portable/MPLAB/PIC32MZ/port.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/portable/MPLAB/PIC32MZ/port.c b/portable/MPLAB/PIC32MZ/port.c index 4a51f6c7f..56099800c 100644 --- a/portable/MPLAB/PIC32MZ/port.c +++ b/portable/MPLAB/PIC32MZ/port.c @@ -144,6 +144,14 @@ static void prvTaskExitError( void ); /*-----------------------------------------------------------*/ + +/* + * Used to determine if the port is in an interrupt. + */ +__attribute__((always_inline)) static BaseType_t xPortIsInsideInterrupt( void ); + +/*-----------------------------------------------------------*/ + /* Records the interrupt nesting depth. This is initialised to one as it is decremented to 0 when the first task starts. */ volatile UBaseType_t uxInterruptNesting = 0x01; @@ -219,6 +227,7 @@ static void prvTaskExitError( void ) portDISABLE_INTERRUPTS(); for( ;; ); } + /*-----------------------------------------------------------*/ /*