Lines Matching refs:HSEMx
162 __STATIC_INLINE uint32_t LL_HSEM_IsSemaphoreLocked(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_IsSemaphoreLocked() argument
164 return ((READ_BIT(HSEMx->R[Semaphore], HSEM_R_LOCK) == (HSEM_R_LOCK_Msk)) ? 1UL : 0UL); in LL_HSEM_IsSemaphoreLocked()
177 __STATIC_INLINE uint32_t LL_HSEM_GetCoreId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetCoreId() argument
179 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_COREID_Msk)); in LL_HSEM_GetCoreId()
189 __STATIC_INLINE uint32_t LL_HSEM_GetProcessId(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetProcessId() argument
191 return (uint32_t)(READ_BIT(HSEMx->R[Semaphore], HSEM_R_PROCID_Msk)); in LL_HSEM_GetProcessId()
205 __STATIC_INLINE void LL_HSEM_SetLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_SetLock() argument
207 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_SetLock()
220 __STATIC_INLINE uint32_t LL_HSEM_2StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t proces… in LL_HSEM_2StepLock() argument
222 WRITE_REG(HSEMx->R[Semaphore], (HSEM_R_LOCK | LL_HSEM_COREID | process)); in LL_HSEM_2StepLock()
223 return ((HSEMx->R[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID | process)) ? 1UL : 0UL); in LL_HSEM_2StepLock()
235 __STATIC_INLINE uint32_t LL_HSEM_1StepLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_1StepLock() argument
237 return ((HSEMx->RLR[Semaphore] != (HSEM_R_LOCK | LL_HSEM_COREID)) ? 1UL : 0UL); in LL_HSEM_1StepLock()
249 __STATIC_INLINE void LL_HSEM_ReleaseLock(HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) in LL_HSEM_ReleaseLock() argument
251 WRITE_REG(HSEMx->R[Semaphore], (LL_HSEM_COREID | process)); in LL_HSEM_ReleaseLock()
260 __STATIC_INLINE uint32_t LL_HSEM_GetStatus(HSEM_TypeDef *HSEMx, uint32_t Semaphore) in LL_HSEM_GetStatus() argument
262 return ((HSEMx->R[Semaphore] != 0U) ? 1UL : 0UL); in LL_HSEM_GetStatus()
272 __STATIC_INLINE void LL_HSEM_SetKey(HSEM_TypeDef *HSEMx, uint32_t key) in LL_HSEM_SetKey() argument
274 WRITE_REG(HSEMx->KEYR, key << HSEM_KEYR_KEY_Pos); in LL_HSEM_SetKey()
283 __STATIC_INLINE uint32_t LL_HSEM_GetKey(HSEM_TypeDef *HSEMx) in LL_HSEM_GetKey() argument
285 return (uint32_t)(READ_BIT(HSEMx->KEYR, HSEM_KEYR_KEY) >> HSEM_KEYR_KEY_Pos); in LL_HSEM_GetKey()
300 __STATIC_INLINE void LL_HSEM_ResetAllLock(HSEM_TypeDef *HSEMx, uint32_t key, uint32_t core) in LL_HSEM_ResetAllLock() argument
302 WRITE_REG(HSEMx->CR, (key << HSEM_CR_KEY_Pos) | core); in LL_HSEM_ResetAllLock()
353 __STATIC_INLINE void LL_HSEM_EnableIT_C1IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_EnableIT_C1IER() argument
355 SET_BIT(HSEMx->C1IER, SemaphoreMask); in LL_HSEM_EnableIT_C1IER()
398 __STATIC_INLINE void LL_HSEM_DisableIT_C1IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_DisableIT_C1IER() argument
400 CLEAR_BIT(HSEMx->C1IER, SemaphoreMask); in LL_HSEM_DisableIT_C1IER()
443 __STATIC_INLINE uint32_t LL_HSEM_IsEnabledIT_C1IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_IsEnabledIT_C1IER() argument
445 return ((READ_BIT(HSEMx->C1IER, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); in LL_HSEM_IsEnabledIT_C1IER()
489 __STATIC_INLINE void LL_HSEM_EnableIT_C2IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_EnableIT_C2IER() argument
491 SET_BIT(HSEMx->C2IER, SemaphoreMask); in LL_HSEM_EnableIT_C2IER()
534 __STATIC_INLINE void LL_HSEM_DisableIT_C2IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_DisableIT_C2IER() argument
536 CLEAR_BIT(HSEMx->C2IER, SemaphoreMask); in LL_HSEM_DisableIT_C2IER()
579 __STATIC_INLINE uint32_t LL_HSEM_IsEnabledIT_C2IER(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_IsEnabledIT_C2IER() argument
581 return ((READ_BIT(HSEMx->C2IER, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); in LL_HSEM_IsEnabledIT_C2IER()
633 __STATIC_INLINE void LL_HSEM_ClearFlag_C1ICR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_ClearFlag_C1ICR() argument
635 WRITE_REG(HSEMx->C1ICR, SemaphoreMask); in LL_HSEM_ClearFlag_C1ICR()
678 __STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C1ISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_IsActiveFlag_C1ISR() argument
680 return ((READ_BIT(HSEMx->C1ISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); in LL_HSEM_IsActiveFlag_C1ISR()
723 __STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C1MISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_IsActiveFlag_C1MISR() argument
725 return ((READ_BIT(HSEMx->C1MISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); in LL_HSEM_IsActiveFlag_C1MISR()
769 __STATIC_INLINE void LL_HSEM_ClearFlag_C2ICR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_ClearFlag_C2ICR() argument
771 WRITE_REG(HSEMx->C2ICR, SemaphoreMask); in LL_HSEM_ClearFlag_C2ICR()
814 __STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C2ISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_IsActiveFlag_C2ISR() argument
816 return ((READ_BIT(HSEMx->C2ISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); in LL_HSEM_IsActiveFlag_C2ISR()
859 __STATIC_INLINE uint32_t LL_HSEM_IsActiveFlag_C2MISR(HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) in LL_HSEM_IsActiveFlag_C2MISR() argument
861 return ((READ_BIT(HSEMx->C2MISR, SemaphoreMask) == (SemaphoreMask)) ? 1UL : 0UL); in LL_HSEM_IsActiveFlag_C2MISR()