Searched refs:mutex (Results 1 – 5 of 5) sorted by relevance
/hal_infineon-3.6.0/abstraction-rtos/source/COMPONENT_FREERTOS/ |
D | cyabs_rtos_freertos.c | 390 cy_rslt_t cy_rtos_init_mutex2(cy_mutex_t* mutex, bool recursive) in cy_rtos_init_mutex2() argument 393 if (mutex == NULL) in cy_rtos_init_mutex2() 399 mutex->is_recursive = recursive; in cy_rtos_init_mutex2() 400 mutex->mutex_handle = recursive in cy_rtos_init_mutex2() 403 if (mutex->mutex_handle == NULL) in cy_rtos_init_mutex2() 419 cy_rslt_t cy_rtos_get_mutex(cy_mutex_t* mutex, cy_time_t timeout_ms) in cy_rtos_get_mutex() argument 422 if (mutex == NULL) in cy_rtos_get_mutex() 429 BaseType_t result = (mutex->is_recursive) in cy_rtos_get_mutex() 430 ? xSemaphoreTakeRecursive(mutex->mutex_handle, ticks) in cy_rtos_get_mutex() 431 : xSemaphoreTake(mutex->mutex_handle, ticks); in cy_rtos_get_mutex() [all …]
|
/hal_infineon-3.6.0/abstraction-rtos/source/COMPONENT_RTX/ |
D | cyabs_rtos_rtxv5.c | 394 cy_rslt_t cy_rtos_init_mutex2(cy_mutex_t* mutex, bool recursive) in cy_rtos_init_mutex2() argument 399 if (mutex == NULL) in cy_rtos_init_mutex2() 421 *mutex = osMutexNew(&attr); in cy_rtos_init_mutex2() 422 CY_ASSERT((*mutex == attr.cb_mem) || (*mutex == NULL)); in cy_rtos_init_mutex2() 423 status = (*mutex == NULL) ? CY_RTOS_GENERAL_ERROR : CY_RSLT_SUCCESS; in cy_rtos_init_mutex2() 434 cy_rslt_t cy_rtos_get_mutex(cy_mutex_t* mutex, cy_time_t timeout_ms) in cy_rtos_get_mutex() argument 439 if (mutex == NULL) in cy_rtos_get_mutex() 445 statusInternal = osMutexAcquire(*mutex, timeout_ms); in cy_rtos_get_mutex() 456 cy_rslt_t cy_rtos_set_mutex(cy_mutex_t* mutex) in cy_rtos_set_mutex() argument 461 if (mutex == NULL) in cy_rtos_set_mutex() [all …]
|
/hal_infineon-3.6.0/abstraction-rtos/source/COMPONENT_THREADX/ |
D | cyabs_rtos_threadx.c | 417 cy_rslt_t cy_rtos_init_mutex2(cy_mutex_t* mutex, bool recursive) in cy_rtos_init_mutex2() argument 419 if (mutex == NULL) in cy_rtos_init_mutex2() 429 return convert_error(tx_mutex_create(mutex, TX_NULL, TX_INHERIT)); in cy_rtos_init_mutex2() 436 cy_rslt_t cy_rtos_get_mutex(cy_mutex_t* mutex, cy_time_t timeout_ms) in cy_rtos_get_mutex() argument 438 if (mutex == NULL) in cy_rtos_get_mutex() 443 cy_rtos_error_t tx_rslt = tx_mutex_get(mutex, convert_ms_to_ticks(timeout_ms)); in cy_rtos_get_mutex() 458 cy_rslt_t cy_rtos_set_mutex(cy_mutex_t* mutex) in cy_rtos_set_mutex() argument 460 if (mutex == NULL) in cy_rtos_set_mutex() 465 return convert_error(tx_mutex_put(mutex)); in cy_rtos_set_mutex() 472 cy_rslt_t cy_rtos_deinit_mutex(cy_mutex_t* mutex) in cy_rtos_deinit_mutex() argument [all …]
|
/hal_infineon-3.6.0/abstraction-rtos/include/ |
D | cyabs_rtos.h | 347 #define cy_rtos_init_mutex(mutex) cy_rtos_init_mutex2(mutex, true) argument 363 cy_rslt_t cy_rtos_init_mutex2(cy_mutex_t* mutex, bool recursive); 381 cy_rslt_t cy_rtos_get_mutex(cy_mutex_t* mutex, cy_time_t timeout_ms); 393 cy_rslt_t cy_rtos_set_mutex(cy_mutex_t* mutex); 403 cy_rslt_t cy_rtos_deinit_mutex(cy_mutex_t* mutex);
|
/hal_infineon-3.6.0/abstraction-rtos/ |
D | README.md | 80 - `cy_mutex_t` : typedef from the underlying RTOS mutex type
|