Add parentheses for configASSERT_DEFINED

This commit is contained in:
ActoryOu 2024-11-04 09:50:57 +00:00
parent e37d32b3f4
commit 893a1ed289
61 changed files with 61 additions and 61 deletions

View file

@ -137,7 +137,7 @@ typedef unsigned long UBaseType_t;
* interrupt API to ensure API function and interrupt entry is as fast and as
* simple as possible. */
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
#if configASSERT_DEFINED == 1
#if ( configASSERT_DEFINED == 1 )
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( ulPortGetIPL() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
#else