Pass core ID to task/ISR lock functions

This commit is contained in:
Felix van Oost 2024-12-21 11:40:50 -05:00
parent f31787d35d
commit 11ee86a9d5
7 changed files with 63 additions and 63 deletions

View file

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