mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Move configASSERT default definition above before including portable.h. (#1185)
Move configASSERT default definition above before including portable.h.
This commit is contained in:
parent
445336aad9
commit
a27d6650ee
62 changed files with 68 additions and 68 deletions
|
@ -113,7 +113,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" )
|
||||
#ifdef configASSERT
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue