This module implements atomic locking mechanisms.
◆ R_BSP_HardwareLock()
| ssp_err_t R_BSP_HardwareLock |
( |
ssp_feature_t const *const |
p_feature | ) |
|
Attempt to reserve a hardware resource lock.
- Parameters
-
| [in] | p_feature | Pointer to the module specific feature information. |
- Return values
-
| SSP_SUCCESS | Lock was acquired |
| SSP_ERR_IN_USE | Lock was not acquired |
◆ R_BSP_HardwareUnlock()
| void R_BSP_HardwareUnlock |
( |
ssp_feature_t const *const |
p_feature | ) |
|
Release hold on lock.
- Parameters
-
| [in] | p_feature | Pointer to the module specific feature information. |
◆ R_BSP_SoftwareLock()
Attempt to acquire the lock that has been sent in.
- Parameters
-
| [in] | p_lock | Pointer to the structure which contains the lock to be acquired. |
- Return values
-
| SSP_SUCCESS | Lock was acquired |
| SSP_ERR_IN_USE | Lock was not acquired |
◆ R_BSP_SoftwareLockInit()
| void R_BSP_SoftwareLockInit |
( |
bsp_lock_t * |
p_lock | ) |
|
Initialize lock value to be unlocked.
- Parameters
-
| [in] | p_lock | Pointer to the structure which contains the lock to initialize. |
◆ R_BSP_SoftwareUnlock()
Release hold on lock.
- Parameters
-
| [in] | p_lock | Pointer to the structure which contains the lock to unlock. |