Lines Matching refs:Semaphore
154 __STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_IsSemaphoreLocked() argument
156 return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); in LL_HSEM_IsSemaphoreLocked()
168 __STATIC_INLINE uint32_t LL_HSEM_GetCoreId(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetCoreId() argument
170 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCKID_Msk)); in LL_HSEM_GetCoreId()
180 __STATIC_INLINE uint32_t LL_HSEM_GetProcessId(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetProcessId() argument
182 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_PROCID_Msk)); in LL_HSEM_GetProcessId()
203 __STATIC_INLINE void LL_HSEM_SetLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process, uin… in LL_HSEM_SetLock() argument
205 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_LOCKID | process | attribute)); in LL_HSEM_SetLock()
225 __STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t proces… in LL_HSEM_2StepLock() argument
227 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_LOCKID | process | attribute)); in LL_HSEM_2StepLock()
228 …return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_LOCKID | process | attribute)) ? 1UL : 0UL); in LL_HSEM_2StepLock()
247 __STATIC_INLINE uint32_t LL_HSEM_1StepLock(const HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t … in LL_HSEM_1StepLock() argument
249 return ((HSEMx->RLR[Semaphore] != (HSEM_RLR_LOCK | LL_HSEM_LOCKID | attribute)) ? 1UL : 0UL); in LL_HSEM_1StepLock()
268 __STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process,… in LL_HSEM_ReleaseLock() argument
270 WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_LOCKID | process | attribute)); in LL_HSEM_ReleaseLock()
279 __STATIC_INLINE uint32_t LL_HSEM_GetStatus(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetStatus() argument
281 return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); in LL_HSEM_GetStatus()