File tree 1 file changed +5
-4
lines changed
portable/ThirdParty/xClang/XCOREAI 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 152
152
153
153
#define portASSERT_IF_IN_ISR () configASSERT( portCHECK_IF_IN_ISR() == 0 )
154
154
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
+
159
160
160
161
void vTaskEnterCritical ( void );
161
162
void vTaskExitCritical ( void );
You can’t perform that action at this time.
0 commit comments