mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -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
|
@ -94,6 +94,13 @@
|
||||||
#define configUSE_MALLOC_FAILED_HOOK 0
|
#define configUSE_MALLOC_FAILED_HOOK 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef configASSERT
|
||||||
|
#define configASSERT( x )
|
||||||
|
#define configASSERT_DEFINED 0
|
||||||
|
#else
|
||||||
|
#define configASSERT_DEFINED 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Basic FreeRTOS definitions. */
|
/* Basic FreeRTOS definitions. */
|
||||||
#include "projdefs.h"
|
#include "projdefs.h"
|
||||||
|
|
||||||
|
@ -364,13 +371,6 @@
|
||||||
#error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
|
#error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef configASSERT
|
|
||||||
#define configASSERT( x )
|
|
||||||
#define configASSERT_DEFINED 0
|
|
||||||
#else
|
|
||||||
#define configASSERT_DEFINED 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* configPRECONDITION should be defined as configASSERT.
|
/* configPRECONDITION should be defined as configASSERT.
|
||||||
* The CBMC proofs need a way to track assumptions and assertions.
|
* The CBMC proofs need a way to track assumptions and assertions.
|
||||||
* A configPRECONDITION statement should express an implicit invariant or
|
* A configPRECONDITION statement should express an implicit invariant or
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -169,7 +169,7 @@ void FreeRTOS_Tick_Handler( void );
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif /* configASSERT */
|
#endif /* configASSERT */
|
||||||
|
|
|
@ -160,7 +160,7 @@ void vPortTaskUsesFPU( void );
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif /* configASSERT */
|
#endif /* configASSERT */
|
||||||
|
|
|
@ -157,7 +157,7 @@ void FreeRTOS_Tick_Handler( void );
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif /* configASSERT */
|
#endif /* configASSERT */
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -171,7 +171,7 @@ extern void vPortExitCritical( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -247,7 +247,7 @@ extern void vPortExitCritical( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -174,7 +174,7 @@ extern void vPortExitCritical( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -341,7 +341,7 @@ extern void vPortExitCritical( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -171,7 +171,7 @@ extern void vPortExitCritical( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -163,7 +163,7 @@ void FreeRTOS_Tick_Handler( void );
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif /* configASSERT */
|
#endif /* configASSERT */
|
||||||
|
|
|
@ -111,7 +111,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
|
#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 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 ) )
|
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
|
#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 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 ) )
|
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
|
#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 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 ) )
|
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -113,7 +113,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
|
#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 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 ) )
|
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -137,7 +137,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __asm volatile ( "MVTIPL #0" )
|
#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 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 ) )
|
#define portDISABLE_INTERRUPTS() if( ulPortGetIPL() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __asm volatile( "MVTIPL %0" ::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -151,7 +151,7 @@
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif /* configASSERT */
|
#endif /* configASSERT */
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -173,7 +173,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -172,7 +172,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -345,7 +345,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -175,7 +175,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -312,7 +312,7 @@ extern void vClearInterruptMask( uint32_t ulMask ) /* __attribute__(( naked )) P
|
||||||
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
* @brief Validate priority of ISRs that are allowed to call FreeRTOS
|
||||||
* system calls.
|
* system calls.
|
||||||
*/
|
*/
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
#if ( portHAS_ARMV8M_MAIN_EXTENSION == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
|
|
|
@ -108,7 +108,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -143,7 +143,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef unsigned long UBaseType_t;
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
#define portENABLE_INTERRUPTS() __set_interrupt_level( ( uint8_t ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( __get_interrupt_level() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( __get_interrupt_level() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) __set_interrupt_level( ( uint8_t ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -148,7 +148,7 @@ value was found to be above configMAX_SYSCALL_INTERRUPT_PRIORITY when an ISR
|
||||||
safe FreeRTOS API function was executed. ISR safe FreeRTOS API functions are
|
safe FreeRTOS API function was executed. ISR safe FreeRTOS API functions are
|
||||||
those that end in FromISR. FreeRTOS maintains a separate interrupt API to
|
those that end in FromISR. FreeRTOS maintains a separate interrupt API to
|
||||||
ensure API function and interrupt entry is as fast and as simple as possible. */
|
ensure API function and interrupt entry is as fast and as simple as possible. */
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portDISABLE_INTERRUPTS() \
|
#define portDISABLE_INTERRUPTS() \
|
||||||
{ \
|
{ \
|
||||||
uint32_t ulStatus; \
|
uint32_t ulStatus; \
|
||||||
|
|
|
@ -95,7 +95,7 @@ value was found to be above configMAX_SYSCALL_INTERRUPT_PRIORITY when an ISR
|
||||||
safe FreeRTOS API function was executed. ISR safe FreeRTOS API functions are
|
safe FreeRTOS API function was executed. ISR safe FreeRTOS API functions are
|
||||||
those that end in FromISR. FreeRTOS maintains a separate interrupt API to
|
those that end in FromISR. FreeRTOS maintains a separate interrupt API to
|
||||||
ensure API function and interrupt entry is as fast and as simple as possible. */
|
ensure API function and interrupt entry is as fast and as simple as possible. */
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portDISABLE_INTERRUPTS() \
|
#define portDISABLE_INTERRUPTS() \
|
||||||
{ \
|
{ \
|
||||||
uint32_t ulStatus; \
|
uint32_t ulStatus; \
|
||||||
|
|
|
@ -97,7 +97,7 @@ value was found to be above configMAX_SYSCALL_INTERRUPT_PRIORITY when an ISR
|
||||||
safe FreeRTOS API function was executed. ISR safe FreeRTOS API functions are
|
safe FreeRTOS API function was executed. ISR safe FreeRTOS API functions are
|
||||||
those that end in FromISR. FreeRTOS maintains a separate interrupt API to
|
those that end in FromISR. FreeRTOS maintains a separate interrupt API to
|
||||||
ensure API function and interrupt entry is as fast and as simple as possible. */
|
ensure API function and interrupt entry is as fast and as simple as possible. */
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portDISABLE_INTERRUPTS() \
|
#define portDISABLE_INTERRUPTS() \
|
||||||
{ \
|
{ \
|
||||||
uint32_t ulStatus; \
|
uint32_t ulStatus; \
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -153,7 +153,7 @@ void vPortTaskUsesFPU( void );
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -165,7 +165,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -165,7 +165,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -334,7 +334,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -165,7 +165,7 @@ extern void vPortExitCritical( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
void vPortValidateInterruptPriority( void );
|
void vPortValidateInterruptPriority( void );
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -112,7 +112,7 @@ functions are those that end in FromISR. FreeRTOS maintains a separate
|
||||||
interrupt API to ensure API function and interrupt entry is as fast and as
|
interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
simple as possible. */
|
simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -112,7 +112,7 @@ functions are those that end in FromISR. FreeRTOS maintains a separate
|
||||||
interrupt API to ensure API function and interrupt entry is as fast and as
|
interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
simple as possible. */
|
simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -113,7 +113,7 @@ functions are those that end in FromISR. FreeRTOS maintains a separate
|
||||||
interrupt API to ensure API function and interrupt entry is as fast and as
|
interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
simple as possible. */
|
simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -113,7 +113,7 @@ functions are those that end in FromISR. FreeRTOS maintains a separate
|
||||||
interrupt API to ensure API function and interrupt entry is as fast and as
|
interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
simple as possible. */
|
simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
* interrupt API to ensure API function and interrupt entry is as fast and as
|
* interrupt API to ensure API function and interrupt entry is as fast and as
|
||||||
* simple as possible. */
|
* simple as possible. */
|
||||||
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
#define portENABLE_INTERRUPTS() set_ipl( ( long ) 0 )
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() configASSERT( ( get_ipl() <= configMAX_SYSCALL_INTERRUPT_PRIORITY ) )
|
||||||
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
#define portDISABLE_INTERRUPTS() if( get_ipl() < configMAX_SYSCALL_INTERRUPT_PRIORITY ) set_ipl( ( long ) configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
/* If CONFIG_FREERTOS_ASSERT_DISABLE is set then configASSERT is defined empty later in FreeRTOS.h and the macro */
|
/* If CONFIG_FREERTOS_ASSERT_DISABLE is set then configASSERT is defined empty later in FreeRTOS.h and the macro */
|
||||||
/* configASSERT_DEFINED remains unset (meaning some warnings are avoided) */
|
/* configASSERT_DEFINED remains unset (meaning some warnings are avoided) */
|
||||||
#ifdef configASSERT
|
#if ( configASSERT_DEFINED == 1 )
|
||||||
#undef configASSERT
|
#undef configASSERT
|
||||||
#if defined( CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE )
|
#if defined( CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE )
|
||||||
#define configASSERT( a ) \
|
#define configASSERT( a ) \
|
||||||
|
|
Loading…
Reference in a new issue