#include "tuya_os_adapter.h"
#include "tuya_os_adapter.h"
#define _TUYA_HAL_MUTEX_H
OPERATE_RET tuya_hal_mutex_create_init(MUTEX_HANDLE *pMutexHandle);
/** * @brief Create mutex * * @param[out] pMutexHandle: mutex handle * * @note This API is used to create mutex. * * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h */
OPERATE_RET tuya_hal_mutex_lock(const MUTEX_HANDLE mutexHandle);
/** * @brief Lock mutex * * @param[in] mutexHandle: mutex handle * * @note This API is used to lock mutex. * * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h */
OPERATE_RET tuya_hal_mutex_unlock(const MUTEX_HANDLE mutexHandle);
/** * @brief Unlock mutex * * @param[in] mutexHandle: mutex handle * * @note This API is used to unlock mutex. * * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h */
OPERATE_RET tuya_hal_mutex_release(const MUTEX_HANDLE mutexHandle);
/** * @brief Release mutex * * @param[in] mutexHandle: mutex handle * * @note This API is used to release mutex. * * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h */
VOID_T tuya_os_mutex_intf_init(VOID_T);
/** * @brief Mutex interface initialization * * @param VOID * * @note This API is used for initialization of mutex interface. * * @return VOID */