Functions | |
| MUTEX_LockCoreIdTypeDef | HAL_MAILBOX_Lock (MUTEX_HandleTypeDef const *const hmutex, uint8_t ch_id) |
| Lock mutex. More... | |
| MUTEX_LockCoreIdTypeDef | HAL_MAILBOX_LockEx (MUTEX_HandleTypeDef const *const hmutex, uint8_t ch_id, uint32_t timeout_ms) |
| Lock mutex advanced version. More... | |
| MUTEX_CH_TypeDef * | HAL_MAILBOX_GetMutex (uint8_t core_id, uint8_t ch_id) |
| Get mutex based on CPU core and channel. More... | |
| void | HAL_MAILBOX_UnLock (MUTEX_HandleTypeDef const *const hmutex, uint8_t ch_id) |
| Unlock mutex. More... | |
| MUTEX_CH_TypeDef* HAL_MAILBOX_GetMutex | ( | uint8_t | core_id, |
| uint8_t | ch_id | ||
| ) |
Get mutex based on CPU core and channel.
| core_id | core ID, CORE_ID_HCPU/CORE_ID_LCPU/CORE_ID_BCPU |
| ch_id | channel id, range, 0~1, it's used if mutex instance is not specified |
| Mutex | handle if successful, NULL if failed. |
| MUTEX_LockCoreIdTypeDef HAL_MAILBOX_Lock | ( | MUTEX_HandleTypeDef const *const | hmutex, |
| uint8_t | ch_id | ||
| ) |
Lock mutex.
| hmutex | mutex handle |
| ch_id | channel id, range, 0~1, it's used if mutex instance is not specified |
| 0 | lock succeed, >0: lock fail, core |
| MUTEX_LockCoreIdTypeDef HAL_MAILBOX_LockEx | ( | MUTEX_HandleTypeDef const *const | hmutex, |
| uint8_t | ch_id, | ||
| uint32_t | timeout_ms | ||
| ) |
Lock mutex advanced version.
| hmutex | mutex handle |
| ch_id | channel id, range, 0~1, it's used if mutex instance is not specified |
| timeout_ms | time out value in ms. |
| 0 | lock succeed, >0: lock fail, core |
| void HAL_MAILBOX_UnLock | ( | MUTEX_HandleTypeDef const *const | hmutex, |
| uint8_t | ch_id | ||
| ) |
Unlock mutex.
| hmutex | mutex handle |
| ch_id | channel id, range, 0~1, it's used if mutex instance is not specified |
| void |