STM32H735xx HAL User Manual
|
Header file of HSEM HAL module. More...
#include "stm32h7xx_hal_def.h"
Go to the source code of this file.
Defines | |
#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) |
Take a semaphore in 2 Step mode. | |
HAL_StatusTypeDef | HAL_HSEM_FastTake (uint32_t SemID) |
Fast Take a semaphore with 1 Step mode. | |
void | HAL_HSEM_Release (uint32_t SemID, uint32_t ProcessID) |
Release a semaphore. | |
void | HAL_HSEM_ReleaseAll (uint32_t Key, uint32_t CoreID) |
Release All semaphore used by a given Master . | |
uint32_t | HAL_HSEM_IsSemTaken (uint32_t SemID) |
Check semaphore state Taken or not. | |
void | HAL_HSEM_SetClearKey (uint32_t Key) |
Set semaphore Key . | |
uint32_t | HAL_HSEM_GetClearKey (void) |
Get semaphore Key . | |
void | HAL_HSEM_ActivateNotification (uint32_t SemMask) |
Activate Semaphore release Notification for a given Semaphores Mask . | |
void | HAL_HSEM_DeactivateNotification (uint32_t SemMask) |
Deactivate Semaphore release Notification for a given Semaphores Mask . | |
__weak void | HAL_HSEM_FreeCallback (uint32_t SemMask) |
Semaphore Released Callback. | |
void | HAL_HSEM_IRQHandler (void) |
This function handles HSEM interrupt request. |
Header file of HSEM HAL module.
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.
Definition in file stm32h7xx_hal_hsem.h.