|
STM32H735xx HAL User Manual
|
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 . | |
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
| HAL_StatusTypeDef HAL_HSEM_FastTake | ( | uint32_t | SemID | ) |
Fast Take a semaphore with 1 Step mode.
| SemID,: | semaphore ID from 0 to 31 |
| HAL | status |
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.
| SemID,: | semaphore ID |
| HAL | HSEM state |
Definition at line 225 of file stm32h7xx_hal_hsem.c.
| void HAL_HSEM_Release | ( | uint32_t | SemID, |
| uint32_t | ProcessID | ||
| ) |
Release a semaphore.
| SemID,: | semaphore ID from 0 to 31 |
| ProcessID,: | Process ID from 0 to 255 |
| 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 .
| Key,: | Semaphore Key , value from 0 to 0xFFFF |
| CoreID,: | CoreID of the CPU that is using semaphores to be released |
| 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.
| SemID,: | semaphore ID from 0 to 31 |
| ProcessID,: | Process ID from 0 to 255 |
| HAL | status |
Definition at line 159 of file stm32h7xx_hal_hsem.c.
References assert_param, HAL_GetCurrentCPUID(), IS_HSEM_PROCESSID, and IS_HSEM_SEMID.
1.7.6.1