RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions
stm32h7xx_hal_hsem.h File Reference

Header file of HSEM HAL module. More...

#include "stm32h7xx_hal_def.h"

Go to the source code of this file.

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.
 
#define IS_HSEM_SEMID(__SEMID__)   ((__SEMID__) <= HSEM_SEMID_MAX )
 
#define IS_HSEM_PROCESSID(__PROCESSID__)   ((__PROCESSID__) <= HSEM_PROCESSID_MAX )
 
#define IS_HSEM_KEY(__KEY__)   ((__KEY__) <= HSEM_CLEAR_KEY_MAX )
 
#define IS_HSEM_COREID(__COREID__)   ((__COREID__) == HSEM_CPU1_COREID)
 

Functions

HAL_StatusTypeDef HAL_HSEM_Take (uint32_t SemID, uint32_t ProcessID)
 
HAL_StatusTypeDef HAL_HSEM_FastTake (uint32_t SemID)
 
void HAL_HSEM_Release (uint32_t SemID, uint32_t ProcessID)
 
void HAL_HSEM_ReleaseAll (uint32_t Key, uint32_t CoreID)
 
uint32_t HAL_HSEM_IsSemTaken (uint32_t SemID)
 
void HAL_HSEM_SetClearKey (uint32_t Key)
 
uint32_t HAL_HSEM_GetClearKey (void)
 
void HAL_HSEM_ActivateNotification (uint32_t SemMask)
 
void HAL_HSEM_DeactivateNotification (uint32_t SemMask)
 
void HAL_HSEM_FreeCallback (uint32_t SemMask)
 
void HAL_HSEM_IRQHandler (void)
 

Detailed Description

Header file of HSEM HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.