Update portable/ThirdParty/xClang/XCOREAI/portmacro.h

This commit is contained in:
chinglee-iot 2024-12-25 18:23:16 +08:00 committed by GitHub
parent c1336042fd
commit f59c1da4ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,10 +152,11 @@
#define portASSERT_IF_IN_ISR() configASSERT( portCHECK_IF_IN_ISR() == 0 ) #define portASSERT_IF_IN_ISR() configASSERT( portCHECK_IF_IN_ISR() == 0 )
#define portGET_ISR_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_acquire( 0 ) ) #define portGET_ISR_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_acquire( 0 ) ); } while( 0 )
#define portRELEASE_ISR_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_release( 0 ) ) #define portRELEASE_ISR_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_release( 0 ) ); } while( 0 )
#define portGET_TASK_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_acquire( 1 ) ) #define portGET_TASK_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_acquire( 1 ) ); } while( 0 )
#define portRELEASE_TASK_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_release( 1 ) ) #define portRELEASE_TASK_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_release( 1 ) ); } while( 0 )
void vTaskEnterCritical( void ); void vTaskEnterCritical( void );
void vTaskExitCritical( void ); void vTaskExitCritical( void );