Lines Matching refs:Semaphore

160 __STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(HSEM_TypeDef *HSEMx, uint32_t Semaphore)  in LL_HSEM_IsSemaphoreLocked()  argument
162 return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); in LL_HSEM_IsSemaphoreLocked()
175 __STATIC_INLINE uint32_t LL_HSEM_GetCoreId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetCoreId() argument
177 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_COREID_Msk)); in LL_HSEM_GetCoreId()
187 __STATIC_INLINE uint32_t LL_HSEM_GetProcessId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetProcessId() argument
189 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) in LL_HSEM_SetLock() argument
205 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_SetLock()
218 __STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t proces… in LL_HSEM_2StepLock() argument
220 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_2StepLock()
221 return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID | process)) ? 1UL : 0UL); in LL_HSEM_2StepLock()
233 __STATIC_INLINE uint32_t LL_HSEM_1StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_1StepLock() argument
235 return ((HSEMx->RLR[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID)) ? 1UL : 0UL); in LL_HSEM_1StepLock()
247 __STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_ReleaseLock() argument
249 WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_COREID | process)); in LL_HSEM_ReleaseLock()
258 __STATIC_INLINE uint32_t LL_HSEM_GetStatus(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetStatus() argument
260 return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); in LL_HSEM_GetStatus()