STM32H735xx HAL User Manual
Functions
Take and Release functions
HSEM Exported Functions

HSEM Take and Release functions. More...

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.
uint32_t HAL_HSEM_IsSemTaken (uint32_t SemID)
 Check semaphore state Taken or not.
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 .

Detailed Description

HSEM Take and Release functions.

 ==============================================================================
              ##### HSEM Take and Release functions #####
 ==============================================================================
[..] This section provides functions allowing to:
      (+) Take a semaphore with 2 Step method
      (+) Fast Take a semaphore with 1 Step method
      (+) Check semaphore state Taken or not
      (+) Release a semaphore
      (+) Release all semaphore at once


Function Documentation

HAL_StatusTypeDef HAL_HSEM_FastTake ( uint32_t  SemID)

Fast Take a semaphore with 1 Step mode.

Parameters:
SemID,:semaphore ID from 0 to 31
Return values:
HALstatus

Definition at line 196 of file stm32h7xx_hal_hsem.c.

References assert_param, HAL_GetCurrentCPUID(), and IS_HSEM_SEMID.

uint32_t HAL_HSEM_IsSemTaken ( uint32_t  SemID)

Check semaphore state Taken or not.

Parameters:
SemID,:semaphore ID
Return values:
HALHSEM state

Definition at line 225 of file stm32h7xx_hal_hsem.c.

void HAL_HSEM_Release ( uint32_t  SemID,
uint32_t  ProcessID 
)

Release a semaphore.

Parameters:
SemID,:semaphore ID from 0 to 31
ProcessID,:Process ID from 0 to 255
Return values:
None

Definition at line 237 of file stm32h7xx_hal_hsem.c.

References assert_param, HAL_GetCurrentCPUID(), IS_HSEM_PROCESSID, and IS_HSEM_SEMID.

void HAL_HSEM_ReleaseAll ( uint32_t  Key,
uint32_t  CoreID 
)

Release All semaphore used by a given Master .

Parameters:
Key,:Semaphore Key , value from 0 to 0xFFFF
CoreID,:CoreID of the CPU that is using semaphores to be released
Return values:
None

Definition at line 258 of file stm32h7xx_hal_hsem.c.

References assert_param, IS_HSEM_COREID, and IS_HSEM_KEY.

HAL_StatusTypeDef HAL_HSEM_Take ( uint32_t  SemID,
uint32_t  ProcessID 
)

Take a semaphore in 2 Step mode.

Parameters:
SemID,:semaphore ID from 0 to 31
ProcessID,:Process ID from 0 to 255
Return values:
HALstatus

Definition at line 159 of file stm32h7xx_hal_hsem.c.

References assert_param, HAL_GetCurrentCPUID(), IS_HSEM_PROCESSID, and IS_HSEM_SEMID.