File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
portable/ThirdParty/xClang/XCOREAI Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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 );
You can’t perform that action at this time.
0 commit comments