Skip to content

Commit c6dcf1f

Browse files
committed
Inline as a macro
1 parent dcf5203 commit c6dcf1f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

portable/MPLAB/PIC32MZ/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void vPortClearInterruptMaskFromISR( UBaseType_t uxSavedStatusRegister )
374374

375375
/*-----------------------------------------------------------*/
376376

377-
__attribute__((always_inline)) BaseType_t xPortIsInsideInterrupt( void )
377+
portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
378378
{
379379
uint32_t ulCurrentInterrupt;
380380
BaseType_t xReturn;

portable/MPLAB/PIC32MZ/portmacro.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ extern volatile UBaseType_t uxInterruptNesting;
223223
#define portREMOVE_STATIC_QUALIFIER
224224
#endif
225225

226+
#ifndef portFORCE_INLINE
227+
#define portFORCE_INLINE __attribute__( ( always_inline ) )
228+
#endif
229+
226230
/* *INDENT-OFF* */
227231
#ifdef __cplusplus
228232
}

0 commit comments

Comments
 (0)