Lines Matching refs:Semaphore
166 __STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_IsSemaphoreLocked() argument
168 return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); in LL_HSEM_IsSemaphoreLocked()
181 __STATIC_INLINE uint32_t LL_HSEM_GetCoreId(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetCoreId() argument
183 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_COREID_Msk)); in LL_HSEM_GetCoreId()
193 __STATIC_INLINE uint32_t LL_HSEM_GetProcessId(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetProcessId() argument
195 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_PROCID_Msk)); in LL_HSEM_GetProcessId()
209 __STATIC_INLINE void LL_HSEM_SetLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_SetLock() argument
211 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_SetLock()
224 __STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t proces… in LL_HSEM_2StepLock() argument
226 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_2StepLock()
227 return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID | process)) ? 1UL : 0UL); in LL_HSEM_2StepLock()
239 __STATIC_INLINE uint32_t LL_HSEM_1StepLock(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_1StepLock() argument
241 return ((HSEMx->RLR[Semaphore] != (HSEM_RLR_LOCK | LL_HSEM_COREID)) ? 1UL : 0UL); in LL_HSEM_1StepLock()
253 __STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_ReleaseLock() argument
255 WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_COREID | process)); in LL_HSEM_ReleaseLock()
264 __STATIC_INLINE uint32_t LL_HSEM_GetStatus(const HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetStatus() argument
266 return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); in LL_HSEM_GetStatus()