Skip to content

Commit f59c1da

Browse files
authored
Update portable/ThirdParty/xClang/XCOREAI/portmacro.h
1 parent c133604 commit f59c1da

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

portable/ThirdParty/xClang/XCOREAI/portmacro.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@
152152

153153
#define portASSERT_IF_IN_ISR() configASSERT( portCHECK_IF_IN_ISR() == 0 )
154154

155-
#define portGET_ISR_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_acquire( 0 ) )
156-
#define portRELEASE_ISR_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_release( 0 ) )
157-
#define portGET_TASK_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_acquire( 1 ) )
158-
#define portRELEASE_TASK_LOCK( xCoreID ) ( (void)xCoreID, rtos_lock_release( 1 ) )
155+
#define portGET_ISR_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_acquire( 0 ) ); } while( 0 )
156+
#define portRELEASE_ISR_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_release( 0 ) ); } while( 0 )
157+
#define portGET_TASK_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_acquire( 1 ) ); } while( 0 )
158+
#define portRELEASE_TASK_LOCK( xCoreID ) do{ ( void )( xCoreID ); rtos_lock_release( 1 ) ); } while( 0 )
159+
159160

160161
void vTaskEnterCritical( void );
161162
void vTaskExitCritical( void );

0 commit comments

Comments
 (0)