RTEMS 6.1-rc1
Macros

Macros

#define __HAL_HSEM_SEMID_TO_MASK(__SEMID__)   (1 << (__SEMID__))
 SemID to mask helper Macro. More...
 
#define __HAL_HSEM_ENABLE_IT(__SEM_MASK__)   (HSEM->IER |= (__SEM_MASK__))
 Enables the specified HSEM interrupts. More...
 
#define __HAL_HSEM_DISABLE_IT(__SEM_MASK__)   (HSEM->IER &= ~(__SEM_MASK__))
 Disables the specified HSEM interrupts. More...
 
#define __HAL_HSEM_GET_IT(__SEM_MASK__)   ((__SEM_MASK__) & HSEM->MISR)
 Checks whether interrupt has occurred or not for semaphores specified by a mask. More...
 
#define __HAL_HSEM_GET_FLAG(__SEM_MASK__)   ((__SEM_MASK__) & HSEM->ISR)
 Get the semaphores release status flags. More...
 
#define __HAL_HSEM_CLEAR_FLAG(__SEM_MASK__)   (HSEM->ICR |= (__SEM_MASK__))
 Clears the HSEM Interrupt flags. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_HSEM_CLEAR_FLAG

#define __HAL_HSEM_CLEAR_FLAG (   __SEM_MASK__)    (HSEM->ICR |= (__SEM_MASK__))

Clears the HSEM Interrupt flags.

Parameters
__SEM_MASK__semaphores Mask
Return values
None.

◆ __HAL_HSEM_DISABLE_IT

#define __HAL_HSEM_DISABLE_IT (   __SEM_MASK__)    (HSEM->IER &= ~(__SEM_MASK__))

Disables the specified HSEM interrupts.

Parameters
__SEM_MASK__semaphores Mask
Return values
None.

◆ __HAL_HSEM_ENABLE_IT

#define __HAL_HSEM_ENABLE_IT (   __SEM_MASK__)    (HSEM->IER |= (__SEM_MASK__))

Enables the specified HSEM interrupts.

Parameters
__SEM_MASK__semaphores Mask
Return values
None.

◆ __HAL_HSEM_GET_FLAG

#define __HAL_HSEM_GET_FLAG (   __SEM_MASK__)    ((__SEM_MASK__) & HSEM->ISR)

Get the semaphores release status flags.

Parameters
__SEM_MASK__semaphores Mask
Return values
semaphoresMask : Semaphores where Release flags rise.

◆ __HAL_HSEM_GET_IT

#define __HAL_HSEM_GET_IT (   __SEM_MASK__)    ((__SEM_MASK__) & HSEM->MISR)

Checks whether interrupt has occurred or not for semaphores specified by a mask.

Parameters
__SEM_MASK__semaphores Mask
Return values
semaphoresMask : Semaphores where an interrupt occurred.

◆ __HAL_HSEM_SEMID_TO_MASK

#define __HAL_HSEM_SEMID_TO_MASK (   __SEMID__)    (1 << (__SEMID__))

SemID to mask helper Macro.

Parameters
__SEMID__semaphore ID from 0 to 31
Return values
SemaphoreMask.