STM32H735xx HAL User Manual
|
Header file of HSEM LL module. More...
#include "stm32h7xx.h"
Go to the source code of this file.
Defines | |
#define | LL_HSEM_COREID_NONE 0U |
#define | LL_HSEM_COREID_CPU1 HSEM_CR_COREID_CPU1 |
#define | LL_HSEM_COREID HSEM_CR_COREID_CURRENT |
#define | LL_HSEM_SEMAPHORE_0 HSEM_C1IER_ISE0 |
#define | LL_HSEM_SEMAPHORE_1 HSEM_C1IER_ISE1 |
#define | LL_HSEM_SEMAPHORE_2 HSEM_C1IER_ISE2 |
#define | LL_HSEM_SEMAPHORE_3 HSEM_C1IER_ISE3 |
#define | LL_HSEM_SEMAPHORE_4 HSEM_C1IER_ISE4 |
#define | LL_HSEM_SEMAPHORE_5 HSEM_C1IER_ISE5 |
#define | LL_HSEM_SEMAPHORE_6 HSEM_C1IER_ISE6 |
#define | LL_HSEM_SEMAPHORE_7 HSEM_C1IER_ISE7 |
#define | LL_HSEM_SEMAPHORE_8 HSEM_C1IER_ISE8 |
#define | LL_HSEM_SEMAPHORE_9 HSEM_C1IER_ISE9 |
#define | LL_HSEM_SEMAPHORE_10 HSEM_C1IER_ISE10 |
#define | LL_HSEM_SEMAPHORE_11 HSEM_C1IER_ISE11 |
#define | LL_HSEM_SEMAPHORE_12 HSEM_C1IER_ISE12 |
#define | LL_HSEM_SEMAPHORE_13 HSEM_C1IER_ISE13 |
#define | LL_HSEM_SEMAPHORE_14 HSEM_C1IER_ISE14 |
#define | LL_HSEM_SEMAPHORE_15 HSEM_C1IER_ISE15 |
#define | LL_HSEM_SEMAPHORE_16 HSEM_C1IER_ISE16 |
#define | LL_HSEM_SEMAPHORE_17 HSEM_C1IER_ISE17 |
#define | LL_HSEM_SEMAPHORE_18 HSEM_C1IER_ISE18 |
#define | LL_HSEM_SEMAPHORE_19 HSEM_C1IER_ISE19 |
#define | LL_HSEM_SEMAPHORE_20 HSEM_C1IER_ISE20 |
#define | LL_HSEM_SEMAPHORE_21 HSEM_C1IER_ISE21 |
#define | LL_HSEM_SEMAPHORE_22 HSEM_C1IER_ISE22 |
#define | LL_HSEM_SEMAPHORE_23 HSEM_C1IER_ISE23 |
#define | LL_HSEM_SEMAPHORE_24 HSEM_C1IER_ISE24 |
#define | LL_HSEM_SEMAPHORE_25 HSEM_C1IER_ISE25 |
#define | LL_HSEM_SEMAPHORE_26 HSEM_C1IER_ISE26 |
#define | LL_HSEM_SEMAPHORE_27 HSEM_C1IER_ISE27 |
#define | LL_HSEM_SEMAPHORE_28 HSEM_C1IER_ISE28 |
#define | LL_HSEM_SEMAPHORE_29 HSEM_C1IER_ISE29 |
#define | LL_HSEM_SEMAPHORE_30 HSEM_C1IER_ISE30 |
#define | LL_HSEM_SEMAPHORE_31 HSEM_C1IER_ISE31 |
#define | LL_HSEM_SEMAPHORE_ALL 0xFFFFFFFFU |
#define | LL_HSEM_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) |
Write a value in HSEM register. | |
#define | LL_HSEM_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) |
Read a value in HSEM register. | |
Functions | |
__STATIC_INLINE uint32_t | LL_HSEM_IsSemaphoreLocked (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Return 1 if the semaphore is locked, else return 0. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetCoreId (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get core id. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetProcessId (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get process id. | |
__STATIC_INLINE void | LL_HSEM_SetLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) |
Get the lock by writing in R register. | |
__STATIC_INLINE uint32_t | LL_HSEM_2StepLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) |
Get the lock with 2-step lock. | |
__STATIC_INLINE uint32_t | LL_HSEM_1StepLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get the lock with 1-step lock. | |
__STATIC_INLINE void | LL_HSEM_ReleaseLock (HSEM_TypeDef *HSEMx, uint32_t Semaphore, uint32_t process) |
Release the lock of the semaphore. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetStatus (HSEM_TypeDef *HSEMx, uint32_t Semaphore) |
Get the lock status of the semaphore. | |
__STATIC_INLINE void | LL_HSEM_SetKey (HSEM_TypeDef *HSEMx, uint32_t key) |
Set the key. | |
__STATIC_INLINE uint32_t | LL_HSEM_GetKey (HSEM_TypeDef *HSEMx) |
Get the key. | |
__STATIC_INLINE void | LL_HSEM_ResetAllLock (HSEM_TypeDef *HSEMx, uint32_t key, uint32_t core) |
Release all semaphore with the same core id. | |
__STATIC_INLINE void | LL_HSEM_EnableIT_C1IER (HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) |
Enable interrupt. | |
__STATIC_INLINE void | LL_HSEM_DisableIT_C1IER (HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) |
Disable interrupt. | |
__STATIC_INLINE uint32_t | LL_HSEM_IsEnabledIT_C1IER (HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) |
Check if interrupt is enabled. | |
__STATIC_INLINE void | LL_HSEM_ClearFlag_C1ICR (HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) |
Clear interrupt status. | |
__STATIC_INLINE uint32_t | LL_HSEM_IsActiveFlag_C1ISR (HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) |
Get interrupt status from ISR register. | |
__STATIC_INLINE uint32_t | LL_HSEM_IsActiveFlag_C1MISR (HSEM_TypeDef *HSEMx, uint32_t SemaphoreMask) |
Get interrupt status from MISR register. |
Header file of HSEM LL module.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32h7xx_ll_hsem.h.