RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros

Macros

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

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.