STM32H735xx HAL User Manual
|
Functions | |
__STATIC_INLINE uint32_t | LL_HSEM_IsSemaphoreLocked (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Return 1 if the semaphore is locked, else return 0. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetCoreId (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get core id. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetProcessId (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get process id. | |
__STATIC_INLINE void | LL_HSEM_SetLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) |
Get the lock by writing in R register. | |
__STATIC_INLINE uint32_t | LL_HSEM_2StepLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) |
Get the lock with 2-step lock. | |
__STATIC_INLINE uint32_t | LL_HSEM_1StepLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get the lock with 1-step lock. | |
__STATIC_INLINE void | LL_HSEM_ReleaseLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) |
Release the lock of the semaphore. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetStatus (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get the lock status of the semaphore. | |
__STATIC_INLINE void | LL_HSEM_SetKey (HSEM_TypeDef *HSEMx, uint32_t key) |
Set the key. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetKey (HSEM_TypeDef *HSEMx) |
Get the key. | |
__STATIC_INLINE void | LL_HSEM_ResetAllLock (HSEM_TypeDef *HSEMx, uint32_t key, uint32_t core) |
Release all semaphore with the same core id. |
__STATIC_INLINE uint32_t LL_HSEM_1StepLock | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore | ||
) |
Get the lock with 1-step lock.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
1 | lock fail, 0 lock successful or already locked by same core |
Definition at line 239 of file stm32h7xx_ll_hsem.h.
References LL_HSEM_COREID.
__STATIC_INLINE uint32_t LL_HSEM_2StepLock | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore, | ||
uint32_t | process | ||
) |
Get the lock with 2-step lock.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
process | Process id. Value between Min_Data=0 and Max_Data=255 |
1 | lock fail, 0 lock successful or already locked by same process and core |
Definition at line 224 of file stm32h7xx_ll_hsem.h.
References LL_HSEM_COREID.
__STATIC_INLINE uint32_t LL_HSEM_GetCoreId | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore | ||
) |
Get core id.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
Returned | value can be one of the following values:
|
Definition at line 181 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE uint32_t LL_HSEM_GetKey | ( | HSEM_TypeDef * | HSEMx | ) |
Get the key.
HSEMx | HSEM Instance. |
key | to unlock all semaphore from the same core |
Definition at line 287 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE uint32_t LL_HSEM_GetProcessId | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore | ||
) |
Get process id.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
Process | number. Value between Min_Data=0 and Max_Data=255 |
Definition at line 193 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE uint32_t LL_HSEM_GetStatus | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore | ||
) |
Get the lock status of the semaphore.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
0 | semaphore is free, 1 semaphore is locked |
Definition at line 264 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore | ||
) |
Return 1 if the semaphore is locked, else return 0.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
State | of bit (1 or 0). |
Definition at line 166 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE void LL_HSEM_ReleaseLock | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore, | ||
uint32_t | process | ||
) |
Release the lock of the semaphore.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
process | Process number. Value between Min_Data=0 and Max_Data=255 |
None |
Definition at line 253 of file stm32h7xx_ll_hsem.h.
References LL_HSEM_COREID.
__STATIC_INLINE void LL_HSEM_ResetAllLock | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | key, | ||
uint32_t | core | ||
) |
Release all semaphore with the same core id.
HSEMx | HSEM Instance. |
key | Key value. |
core | This parameter can be one of the following values:
|
None |
Definition at line 304 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE void LL_HSEM_SetKey | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | key | ||
) |
Set the key.
HSEMx | HSEM Instance. |
key | Key value. |
None |
Definition at line 276 of file stm32h7xx_ll_hsem.h.
__STATIC_INLINE void LL_HSEM_SetLock | ( | HSEM_TypeDef * | HSEMx, |
uint32_t | Semaphore, | ||
uint32_t | process | ||
) |
Get the lock by writing in R register.
HSEMx | HSEM Instance. |
Semaphore | Semaphore number. Value between Min_Data=0 and Max_Data=31 |
process | Process id. Value between Min_Data=0 and Max_Data=255 |
None |
Definition at line 209 of file stm32h7xx_ll_hsem.h.
References LL_HSEM_COREID.