mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-06 13:15:19 -05:00
Inline as a macro
This commit is contained in:
parent
d82e32d25a
commit
40f51fd08f
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue