Lines Matching refs:Semaphore

170 __STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(const HSEM_TypeDef *HSEMx, uint32_t Semaphore)  in LL_HSEM_IsSemaphoreLocked()  argument
172 return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); in LL_HSEM_IsSemaphoreLocked()
184 __STATIC_INLINE uint32_t LL_HSEM_GetCoreId(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetCoreId() argument
186 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCKID_Msk)); in LL_HSEM_GetCoreId()
196 __STATIC_INLINE uint32_t LL_HSEM_GetProcessId(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetProcessId() argument
198 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_PROCID_Msk)); in LL_HSEM_GetProcessId()
219 __STATIC_INLINE void LL_HSEM_SetLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process, uin… in LL_HSEM_SetLock() argument
221 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_LOCKID | process | attribute)); in LL_HSEM_SetLock()
241 __STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t proces… in LL_HSEM_2StepLock() argument
243 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_LOCKID | process | attribute)); in LL_HSEM_2StepLock()
244 …return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_LOCKID | process | attribute)) ? 1UL : 0UL); in LL_HSEM_2StepLock()
263 __STATIC_INLINE uint32_t LL_HSEM_1StepLock(const HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t … in LL_HSEM_1StepLock() argument
265 return ((HSEMx->RLR[Semaphore] != (HSEM_RLR_LOCK | LL_HSEM_LOCKID | attribute)) ? 1UL : 0UL); in LL_HSEM_1StepLock()
284 __STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process,… in LL_HSEM_ReleaseLock() argument
286 WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_LOCKID | process | attribute)); in LL_HSEM_ReleaseLock()
295 __STATIC_INLINE uint32_t LL_HSEM_GetStatus(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetStatus() argument
297 return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); in LL_HSEM_GetStatus()