Inline as a macro

This commit is contained in:
Kody Stribrny 2025-08-11 14:12:43 -07:00
parent d82e32d25a
commit 40f51fd08f
2 changed files with 5 additions and 1 deletions

View file

@ -374,7 +374,7 @@ void vPortClearInterruptMaskFromISR( UBaseType_t uxSavedStatusRegister )
/*-----------------------------------------------------------*/
__attribute__((always_inline)) BaseType_t xPortIsInsideInterrupt( void )
portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
{
uint32_t ulCurrentInterrupt;
BaseType_t xReturn;

View file

@ -223,6 +223,10 @@ extern volatile UBaseType_t uxInterruptNesting;
#define portREMOVE_STATIC_QUALIFIER
#endif
#ifndef portFORCE_INLINE
#define portFORCE_INLINE __attribute__( ( always_inline ) )
#endif
/* *INDENT-OFF* */
#ifdef __cplusplus
}