Searched refs:semaphore (Results 1 – 7 of 7) sorted by relevance
/hal_infineon-3.4.0/abstraction-rtos/source/COMPONENT_THREADX/ |
D | cyabs_rtos_threadx.c | 490 cy_rslt_t cy_rtos_init_semaphore(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount) in cy_rtos_init_semaphore() argument 492 if (semaphore == NULL) in cy_rtos_init_semaphore() 496 semaphore->maxcount = maxcount; in cy_rtos_init_semaphore() 497 return convert_error(tx_semaphore_create(&(semaphore->tx_semaphore), TX_NULL, initcount)); in cy_rtos_init_semaphore() 504 cy_rslt_t cy_rtos_get_semaphore(cy_semaphore_t* semaphore, cy_time_t timeout_ms, bool in_isr) in cy_rtos_get_semaphore() argument 509 if ((semaphore == NULL) || (in_isr && (timeout_ms != 0))) in cy_rtos_get_semaphore() 514 tx_semaphore_get(&(semaphore->tx_semaphore), convert_ms_to_ticks(timeout_ms)); in cy_rtos_get_semaphore() 529 cy_rslt_t cy_rtos_set_semaphore(cy_semaphore_t* semaphore, bool in_isr) in cy_rtos_set_semaphore() argument 532 if (semaphore == NULL) in cy_rtos_set_semaphore() 536 return convert_error(tx_semaphore_ceiling_put(&(semaphore->tx_semaphore), semaphore->maxcount)); in cy_rtos_set_semaphore() [all …]
|
/hal_infineon-3.4.0/abstraction-rtos/source/COMPONENT_RTX/ |
D | cyabs_rtos_rtxv5.c | 507 cy_rslt_t cy_rtos_init_semaphore(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount) in cy_rtos_init_semaphore() argument 512 if (semaphore == NULL) in cy_rtos_init_semaphore() 530 *semaphore = osSemaphoreNew(maxcount, initcount, &attr); in cy_rtos_init_semaphore() 531 CY_ASSERT((*semaphore == attr.cb_mem) || (*semaphore == NULL)); in cy_rtos_init_semaphore() 532 status = (*semaphore == NULL) ? CY_RTOS_GENERAL_ERROR : CY_RSLT_SUCCESS; in cy_rtos_init_semaphore() 543 cy_rslt_t cy_rtos_get_semaphore(cy_semaphore_t* semaphore, cy_time_t timeout_ms, bool in_isr) in cy_rtos_get_semaphore() argument 550 if ((semaphore == NULL) || (in_isr && (timeout_ms != 0))) in cy_rtos_get_semaphore() 556 statusInternal = osSemaphoreAcquire(*semaphore, timeout_ms); in cy_rtos_get_semaphore() 567 cy_rslt_t cy_rtos_set_semaphore(cy_semaphore_t* semaphore, bool in_isr) in cy_rtos_set_semaphore() argument 573 if (semaphore == NULL) in cy_rtos_set_semaphore() [all …]
|
/hal_infineon-3.4.0/abstraction-rtos/source/COMPONENT_FREERTOS/ |
D | cyabs_rtos_freertos.c | 491 cy_rslt_t cy_rtos_init_semaphore(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount) in cy_rtos_init_semaphore() argument 494 if (semaphore == NULL) in cy_rtos_init_semaphore() 500 *semaphore = xSemaphoreCreateCounting(maxcount, initcount); in cy_rtos_init_semaphore() 501 if (*semaphore == NULL) in cy_rtos_init_semaphore() 517 cy_rslt_t cy_rtos_get_semaphore(cy_semaphore_t* semaphore, uint32_t timeout_ms, bool in_isr) in cy_rtos_get_semaphore() argument 524 if ((semaphore == NULL) || (in_isr && (timeout_ms != 0))) in cy_rtos_get_semaphore() 535 if (pdFALSE == xSemaphoreTakeFromISR(*semaphore, &xHigherPriorityTaskWoken)) in cy_rtos_get_semaphore() 542 if (pdFALSE == xSemaphoreTake(*semaphore, ticks)) in cy_rtos_get_semaphore() 556 cy_rslt_t cy_rtos_set_semaphore(cy_semaphore_t* semaphore, bool in_isr) in cy_rtos_set_semaphore() argument 560 if (semaphore == NULL) in cy_rtos_set_semaphore() [all …]
|
/hal_infineon-3.4.0/abstraction-rtos/include/ |
D | cyabs_rtos.h | 427 cy_rslt_t cy_rtos_init_semaphore(cy_semaphore_t* semaphore, uint32_t maxcount, uint32_t initcount); 444 cy_rslt_t cy_rtos_get_semaphore(cy_semaphore_t* semaphore, cy_time_t timeout_ms, bool in_isr); 457 cy_rslt_t cy_rtos_set_semaphore(cy_semaphore_t* semaphore, bool in_isr); 469 cy_rslt_t cy_rtos_get_count_semaphore(cy_semaphore_t* semaphore, size_t* count); 481 cy_rslt_t cy_rtos_deinit_semaphore(cy_semaphore_t* semaphore);
|
/hal_infineon-3.4.0/abstraction-rtos/ |
D | RELEASE.md | 38 * Added support for getting a semaphore's count: cy_rtos_get_count_semaphore()
|
D | README.md | 81 - `cy_semaphore_t`: typedef from the underlying RTOS semaphore type
|
/hal_infineon-3.4.0/wifi-host-driver/WiFi_Host_Driver/src/ |
D | whd_wifi_api.c | 316 cy_semaphore_t *semaphore); 322 cy_semaphore_t *semaphore); 852 cy_semaphore_t *semaphore = (cy_semaphore_t *)handler_user_data; in whd_wifi_join_events_handler() local 1122 if (semaphore != NULL) in whd_wifi_join_events_handler() 1132 …whd_assert("Unexpected semaphore\n", whd_driver->internal_info.active_join_semaphore == semaphore); in whd_wifi_join_events_handler() 1155 uint8_t key_length, cy_semaphore_t *semaphore) in whd_wifi_active_join_init() argument 1168 whd_driver->internal_info.active_join_semaphore = semaphore; in whd_wifi_active_join_init() 1171 CHECK_RETURN(whd_wifi_prepare_join(ifp, auth_type, security_key, key_length, semaphore) ); in whd_wifi_active_join_init() 1177 cy_semaphore_t *semaphore) in whd_wifi_prepare_join() argument 1210 (void)auth_type, (void)security_key, (void)key_length, (void)semaphore; in whd_wifi_prepare_join() [all …]
|