Lines Matching refs:Semaphore
158 __STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_IsSemaphoreLocked() argument
160 return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); in LL_HSEM_IsSemaphoreLocked()
172 __STATIC_INLINE uint32_t LL_HSEM_GetCoreId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetCoreId() argument
174 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_COREID_Msk)); in LL_HSEM_GetCoreId()
184 __STATIC_INLINE uint32_t LL_HSEM_GetProcessId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetProcessId() argument
186 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_PROCID_Msk)); in LL_HSEM_GetProcessId()
200 __STATIC_INLINE void LL_HSEM_SetLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_SetLock() argument
202 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_SetLock()
215 __STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t proces… in LL_HSEM_2StepLock() argument
217 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_2StepLock()
218 return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID | process)) ? 1UL : 0UL); in LL_HSEM_2StepLock()
230 __STATIC_INLINE uint32_t LL_HSEM_1StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_1StepLock() argument
232 return ((HSEMx->RLR[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID)) ? 1UL : 0UL); in LL_HSEM_1StepLock()
244 __STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_ReleaseLock() argument
246 WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_COREID | process)); in LL_HSEM_ReleaseLock()
255 __STATIC_INLINE uint32_t LL_HSEM_GetStatus(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetStatus() argument
257 return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); in LL_HSEM_GetStatus()