Skip to content

Commit a27d665

Browse files
authored
Move configASSERT default definition above before including portable.h. (FreeRTOS#1185)
Move configASSERT default definition above before including portable.h.
1 parent 445336a commit a27d665

File tree

62 files changed

+68
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+68
-68
lines changed

include/FreeRTOS.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@
9494
#define configUSE_MALLOC_FAILED_HOOK 0
9595
#endif
9696

97+
#ifndef configASSERT
98+
#define configASSERT( x )
99+
#define configASSERT_DEFINED 0
100+
#else
101+
#define configASSERT_DEFINED 1
102+
#endif
103+
97104
/* Basic FreeRTOS definitions. */
98105
#include "projdefs.h"
99106

@@ -364,13 +371,6 @@
364371
#error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
365372
#endif
366373

367-
#ifndef configASSERT
368-
#define configASSERT( x )
369-
#define configASSERT_DEFINED 0
370-
#else
371-
#define configASSERT_DEFINED 1
372-
#endif
373-
374374
/* configPRECONDITION should be defined as configASSERT.
375375
* The CBMC proofs need a way to track assumptions and assertions.
376376
* A configPRECONDITION statement should express an implicit invariant or

portable/ARMv8M/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/CCS/ARM_CM3/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
171171
/*-----------------------------------------------------------*/
172172

173-
#ifdef configASSERT
173+
#if ( configASSERT_DEFINED == 1 )
174174
void vPortValidateInterruptPriority( void );
175175
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
176176
#endif

portable/CCS/ARM_CM4F/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
165165
/*-----------------------------------------------------------*/
166166

167-
#ifdef configASSERT
167+
#if ( configASSERT_DEFINED == 1 )
168168
void vPortValidateInterruptPriority( void );
169169
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
170170
#endif

portable/GCC/ARM_AARCH64/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void FreeRTOS_Tick_Handler( void );
169169

170170
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
171171

172-
#ifdef configASSERT
172+
#if ( configASSERT_DEFINED == 1 )
173173
void vPortValidateInterruptPriority( void );
174174
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
175175
#endif /* configASSERT */

portable/GCC/ARM_AARCH64_SRE/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void vPortTaskUsesFPU( void );
160160

161161
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
162162

163-
#ifdef configASSERT
163+
#if ( configASSERT_DEFINED == 1 )
164164
void vPortValidateInterruptPriority( void );
165165
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
166166
#endif /* configASSERT */

portable/GCC/ARM_CA9/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void FreeRTOS_Tick_Handler( void );
157157

158158
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
159159

160-
#ifdef configASSERT
160+
#if ( configASSERT_DEFINED == 1 )
161161
void vPortValidateInterruptPriority( void );
162162
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
163163
#endif /* configASSERT */

portable/GCC/ARM_CM23/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM23_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM3/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ extern void vPortExitCritical( void );
171171

172172
/*-----------------------------------------------------------*/
173173

174-
#ifdef configASSERT
174+
#if ( configASSERT_DEFINED == 1 )
175175
void vPortValidateInterruptPriority( void );
176176
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
177177
#endif

portable/GCC/ARM_CM33/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM33_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM35P/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM35P_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM3_MPU/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ extern void vPortExitCritical( void );
247247

248248
/*-----------------------------------------------------------*/
249249

250-
#ifdef configASSERT
250+
#if ( configASSERT_DEFINED == 1 )
251251
void vPortValidateInterruptPriority( void );
252252
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
253253
#endif

portable/GCC/ARM_CM4F/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ extern void vPortExitCritical( void );
174174

175175
/*-----------------------------------------------------------*/
176176

177-
#ifdef configASSERT
177+
#if ( configASSERT_DEFINED == 1 )
178178
void vPortValidateInterruptPriority( void );
179179
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
180180
#endif

portable/GCC/ARM_CM4_MPU/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ extern void vPortExitCritical( void );
341341

342342
/*-----------------------------------------------------------*/
343343

344-
#ifdef configASSERT
344+
#if ( configASSERT_DEFINED == 1 )
345345
void vPortValidateInterruptPriority( void );
346346
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
347347
#endif

portable/GCC/ARM_CM55/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM55_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM7/r0p1/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ extern void vPortExitCritical( void );
171171

172172
/*-----------------------------------------------------------*/
173173

174-
#ifdef configASSERT
174+
#if ( configASSERT_DEFINED == 1 )
175175
void vPortValidateInterruptPriority( void );
176176
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
177177
#endif

portable/GCC/ARM_CM85/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CM85_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/GCC/ARM_CR5/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void FreeRTOS_Tick_Handler( void );
163163

164164
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
165165

166-
#ifdef configASSERT
166+
#if ( configASSERT_DEFINED == 1 )
167167
void vPortValidateInterruptPriority( void );
168168
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
169169
#endif /* configASSERT */

portable/GCC/RX100/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef unsigned long UBaseType_t;
111111
* interrupt API to ensure API function and interrupt entry is as fast and as
112112
* simple as possible. */
113113
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
114-
#ifdef configASSERT
114+
#if ( configASSERT_DEFINED == 1 )
115115
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( ulPortGetIPL() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
116116
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
117117
#else

portable/GCC/RX200/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
113113
* interrupt API to ensure API function and interrupt entry is as fast and as
114114
* simple as possible. */
115115
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
116-
#ifdef configASSERT
116+
#if ( configASSERT_DEFINED == 1 )
117117
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( ulPortGetIPL() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
118118
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
119119
#else

portable/GCC/RX600/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
113113
* interrupt API to ensure API function and interrupt entry is as fast and as
114114
* simple as possible. */
115115
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
116-
#ifdef configASSERT
116+
#if ( configASSERT_DEFINED == 1 )
117117
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( ulPortGetIPL() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
118118
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
119119
#else

portable/GCC/RX600v2/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
113113
* interrupt API to ensure API function and interrupt entry is as fast and as
114114
* simple as possible. */
115115
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
116-
#ifdef configASSERT
116+
#if ( configASSERT_DEFINED == 1 )
117117
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( ulPortGetIPL() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
118118
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
119119
#else

portable/GCC/RX700v3_DPFPU/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ typedef unsigned long UBaseType_t;
137137
* interrupt API to ensure API function and interrupt entry is as fast and as
138138
* simple as possible. */
139139
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
140-
#ifdef configASSERT
140+
#if ( configASSERT_DEFINED == 1 )
141141
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( ulPortGetIPL() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
142142
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
143143
#else

portable/IAR/ARM_CA9/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151

152152
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
153153

154-
#ifdef configASSERT
154+
#if ( configASSERT_DEFINED == 1 )
155155
void vPortValidateInterruptPriority( void );
156156
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
157157
#endif /* configASSERT */

portable/IAR/ARM_CM23/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM23_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM3/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ extern void vPortExitCritical( void );
173173
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
174174
/*-----------------------------------------------------------*/
175175

176-
#ifdef configASSERT
176+
#if ( configASSERT_DEFINED == 1 )
177177
void vPortValidateInterruptPriority( void );
178178
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
179179
#endif

portable/IAR/ARM_CM33/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM33_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM35P/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM35P_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM4F/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extern void vPortExitCritical( void );
172172
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
173173
/*-----------------------------------------------------------*/
174174

175-
#ifdef configASSERT
175+
#if ( configASSERT_DEFINED == 1 )
176176
void vPortValidateInterruptPriority( void );
177177
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
178178
#endif

portable/IAR/ARM_CM4F_MPU/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ extern void vPortExitCritical( void );
345345
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
346346
/*-----------------------------------------------------------*/
347347

348-
#ifdef configASSERT
348+
#if ( configASSERT_DEFINED == 1 )
349349
void vPortValidateInterruptPriority( void );
350350
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
351351
#endif

portable/IAR/ARM_CM55/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM55_NTZ/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

portable/IAR/ARM_CM7/r0p1/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ extern void vPortExitCritical( void );
175175
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
176176
/*-----------------------------------------------------------*/
177177

178-
#ifdef configASSERT
178+
#if ( configASSERT_DEFINED == 1 )
179179
void vPortValidateInterruptPriority( void );
180180
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
181181
#endif

portable/IAR/ARM_CM85/non_secure/portmacrocommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
312312
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
313313
* system calls.
314314
*/
315-
#ifdef configASSERT
315+
#if ( configASSERT_DEFINED == 1 )
316316
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
317317
void vPortValidateInterruptPriority( void );
318318
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()

0 commit comments

Comments
 (0)