/* Delete a Mutex that was created by osMutexCreate.  */
osStatus osMutexDelete(osMutexId mutex_id)
/* Delete a Mutex that was created by osMutexCreate.  */
osStatus osMutexDelete(osMutexId mutex_id)
{
	struct k_mutex *mutex = (struct k_mutex *) mutex_id;
	if (mutex_id == NULL) {
		return osErrorParameter;
	}
	if (k_is_in_isr()) {
		return osErrorISR;
	}
	k_mem_slab_free(&cmsis_mutex_slab, (void *)mutex);
	return osOK;
}