Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 8 of 8) sorted by relevance

/hal_infineon-latest/abstraction-rtos/include/
Dcyabs_rtos.h470 cy_rslt_t cy_rtos_semaphore_init(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount);
486 cy_rslt_t cy_rtos_semaphore_get(cy_semaphore_t* semaphore, cy_time_t timeout_ms);
498 cy_rslt_t cy_rtos_semaphore_set(cy_semaphore_t* semaphore);
510 cy_rslt_t cy_rtos_semaphore_get_count(cy_semaphore_t* semaphore, size_t* count);
522 cy_rslt_t cy_rtos_semaphore_deinit(cy_semaphore_t* semaphore);
1063 #define cy_rtos_init_semaphore(semaphore, maxcount, initcount) \ argument
1064 cy_rtos_semaphore_init(semaphore, maxcount, initcount)
1081 #define cy_rtos_get_semaphore(semaphore, timeout_ms, \ argument
1082 in_isr) cy_rtos_semaphore_get(semaphore, timeout_ms)
1095 #define cy_rtos_set_semaphore(semaphore, in_isr) cy_rtos_semaphore_set(semaphore) argument
[all …]
/hal_infineon-latest/abstraction-rtos/source/COMPONENT_RTX/
Dcyabs_rtos_rtxv5.c555 cy_rslt_t cy_rtos_semaphore_init(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount) in cy_rtos_semaphore_init() argument
560 if (semaphore == NULL) in cy_rtos_semaphore_init()
578 *semaphore = osSemaphoreNew(maxcount, initcount, &attr); in cy_rtos_semaphore_init()
579 CY_ASSERT((*semaphore == attr.cb_mem) || (*semaphore == NULL)); in cy_rtos_semaphore_init()
580 status = (*semaphore == NULL) ? CY_RTOS_GENERAL_ERROR : CY_RSLT_SUCCESS; in cy_rtos_semaphore_init()
591 cy_rslt_t cy_rtos_semaphore_get(cy_semaphore_t* semaphore, cy_time_t timeout_ms) in cy_rtos_semaphore_get() argument
598 if ((semaphore == NULL) || (in_isr && (timeout_ms != 0))) in cy_rtos_semaphore_get()
604 statusInternal = osSemaphoreAcquire(*semaphore, timeout_ms); in cy_rtos_semaphore_get()
615 cy_rslt_t cy_rtos_semaphore_set(cy_semaphore_t* semaphore) in cy_rtos_semaphore_set() argument
620 if (semaphore == NULL) in cy_rtos_semaphore_set()
[all …]
/hal_infineon-latest/abstraction-rtos/source/COMPONENT_THREADX/
Dcyabs_rtos_threadx.c557 cy_rslt_t cy_rtos_semaphore_init(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount) in cy_rtos_semaphore_init() argument
559 if (semaphore == NULL) in cy_rtos_semaphore_init()
563 semaphore->maxcount = maxcount; in cy_rtos_semaphore_init()
564 return convert_error(tx_semaphore_create(&(semaphore->tx_semaphore), TX_NULL, initcount)); in cy_rtos_semaphore_init()
571 cy_rslt_t cy_rtos_semaphore_get(cy_semaphore_t* semaphore, cy_time_t timeout_ms) in cy_rtos_semaphore_get() argument
576 if ((semaphore == NULL) || (is_in_isr() && (timeout_ms != 0))) in cy_rtos_semaphore_get()
581 tx_semaphore_get(&(semaphore->tx_semaphore), convert_ms_to_ticks(timeout_ms)); in cy_rtos_semaphore_get()
596 cy_rslt_t cy_rtos_semaphore_set(cy_semaphore_t* semaphore) in cy_rtos_semaphore_set() argument
598 if (semaphore == NULL) in cy_rtos_semaphore_set()
602 return convert_error(tx_semaphore_ceiling_put(&(semaphore->tx_semaphore), semaphore->maxcount)); in cy_rtos_semaphore_set()
[all …]
/hal_infineon-latest/abstraction-rtos/source/COMPONENT_FREERTOS/
Dcyabs_rtos_freertos.c592 cy_rslt_t cy_rtos_semaphore_init(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount) in cy_rtos_semaphore_init() argument
595 if (semaphore == NULL) in cy_rtos_semaphore_init()
601 *semaphore = xSemaphoreCreateCounting(maxcount, initcount); in cy_rtos_semaphore_init()
602 if (*semaphore == NULL) in cy_rtos_semaphore_init()
618 cy_rslt_t cy_rtos_semaphore_get(cy_semaphore_t* semaphore, cy_time_t timeout_ms) in cy_rtos_semaphore_get() argument
625 if ((semaphore == NULL) || (is_in_isr() && (timeout_ms != 0))) in cy_rtos_semaphore_get()
636 if (pdFALSE == xSemaphoreTakeFromISR(*semaphore, &xHigherPriorityTaskWoken)) in cy_rtos_semaphore_get()
647 if (pdFALSE == xSemaphoreTake(*semaphore, ticks)) in cy_rtos_semaphore_get()
661 cy_rslt_t cy_rtos_semaphore_set(cy_semaphore_t* semaphore) in cy_rtos_semaphore_set() argument
665 if (semaphore == NULL) in cy_rtos_semaphore_set()
[all …]
/hal_infineon-latest/mtb-hal-cat1/source/
Dcyhal_ipc.c254 cy_semaphore_t semaphore; member
412 … &(((_cyhal_ipc_rtos_sema_t *)obj->rtos_sema)->semaphore), timeout_ms, false); in _cyhal_ipc_sema_take()
424 … &(((_cyhal_ipc_rtos_sema_t *)obj->rtos_sema)->semaphore), timeout_ms, false); in _cyhal_ipc_sema_take()
955 … (void)cy_rtos_set_semaphore(&_cyhal_ipc_rtos_semaphores[sema_idx].semaphore, true); in _cyhal_ipc_irq_handler()
1025 … result = cy_rtos_init_semaphore(&(_cyhal_ipc_rtos_semaphores[rtos_sema_idx].semaphore), 1, 0); in cyhal_ipc_semaphore_init()
1054 (void)cy_rtos_deinit_semaphore(&((_cyhal_ipc_rtos_sema_t *)obj->rtos_sema)->semaphore); in cyhal_ipc_semaphore_free()
/hal_infineon-latest/wifi-host-driver/WiFi_Host_Driver/src/
Dwhd_wifi_api.c315 cy_semaphore_t *semaphore);
321 cy_semaphore_t *semaphore);
863 cy_semaphore_t *semaphore = (cy_semaphore_t *)handler_user_data; in whd_wifi_join_events_handler() local
1133 if (semaphore != NULL) in whd_wifi_join_events_handler()
1143 …whd_assert("Unexpected semaphore\n", whd_driver->internal_info.active_join_semaphore == semaphore); in whd_wifi_join_events_handler()
1166 uint8_t key_length, cy_semaphore_t *semaphore) in whd_wifi_active_join_init() argument
1179 whd_driver->internal_info.active_join_semaphore = semaphore; in whd_wifi_active_join_init()
1182 CHECK_RETURN(whd_wifi_prepare_join(ifp, auth_type, security_key, key_length, semaphore) ); in whd_wifi_active_join_init()
1188 cy_semaphore_t *semaphore) in whd_wifi_prepare_join() argument
1221 (void)auth_type, (void)security_key, (void)key_length, (void)semaphore; in whd_wifi_prepare_join()
[all …]
/hal_infineon-latest/abstraction-rtos/
DRELEASE.md61 * Added support for getting a semaphore's count: cy_rtos_get_count_semaphore()
DREADME.md85 - `cy_semaphore_t`: typedef from the underlying RTOS semaphore type