Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 108) sorted by relevance

12345

/hal_infineon-3.7.0/mtb-pdl-cat1/drivers/source/
Dcy_flash.c364 cy_en_flashdrv_status_t result = CY_FLASH_DRV_IPC_BUSY; in Cy_Flash_SendCmd() local
388 result = CY_FLASH_DRV_SUCCESS; in Cy_Flash_SendCmd()
407 result = CY_FLASH_DRV_SUCCESS; in Cy_Flash_SendCmd()
414 if (CY_FLASH_DRV_SUCCESS == result) in Cy_Flash_SendCmd()
429 result = CY_FLASH_DRV_OPERATION_STARTED; in Cy_Flash_SendCmd()
437 result = Cy_Flash_OperationStatus(); in Cy_Flash_SendCmd()
443 result = CY_FLASH_DRV_IPC_BUSY; in Cy_Flash_SendCmd()
449 result = CY_FLASH_DRV_IPC_BUSY; in Cy_Flash_SendCmd()
476 result = CY_FLASH_DRV_OPERATION_STARTED; in Cy_Flash_SendCmd()
485 result = Cy_Flash_OperationStatus(); in Cy_Flash_SendCmd()
[all …]
Dcy_smif_memslot.c110 uint32_t result = (uint32_t)CY_SMIF_BAD_PARAM; in Cy_SMIF_MemInit() local
120 result = (uint32_t)CY_SMIF_SUCCESS; in Cy_SMIF_MemInit()
198 result = (uint32_t)CY_SMIF_BAD_PARAM; in Cy_SMIF_MemInit()
205 result = (uint32_t)Cy_SMIF_HyperBus_InitDevice(base, memCfg, context); in Cy_SMIF_MemInit()
210 result = (uint32_t)CY_SMIF_BAD_PARAM; in Cy_SMIF_MemInit()
218 result = (((uint32_t)CY_SMIF_ID) | ((uint32_t)CY_PDL_STATUS_ERROR) | sfdpRes); in Cy_SMIF_MemInit()
220 return (cy_en_smif_status_t) result; in Cy_SMIF_MemInit()
301 cy_en_smif_status_t result = CY_SMIF_CMD_NOT_FOUND; in Cy_SMIF_MemCmdWriteEnable() local
306 result = Cy_SMIF_TransmitCommand_Ext( base, in Cy_SMIF_MemCmdWriteEnable()
319 result = Cy_SMIF_TransmitCommand( base, (uint8_t) writeEn->command, in Cy_SMIF_MemCmdWriteEnable()
[all …]
Dcy_efuse.c57 cy_en_efuse_status_t result = CY_EFUSE_BAD_PARAM; in Cy_EFUSE_GetEfuseBit() local
66 result = Cy_EFUSE_GetEfuseByte(offset, &byteVal); in Cy_EFUSE_GetEfuseBit()
68 if (result == CY_EFUSE_SUCCESS) in Cy_EFUSE_GetEfuseBit()
75 return (result); in Cy_EFUSE_GetEfuseBit()
80 cy_en_efuse_status_t result = CY_EFUSE_BAD_PARAM; in Cy_EFUSE_GetEfuseByte() local
118 result = CY_EFUSE_SUCCESS; in Cy_EFUSE_GetEfuseByte()
122 result = ProcessOpcode(); in Cy_EFUSE_GetEfuseByte()
128 result = CY_EFUSE_IPC_BUSY; in Cy_EFUSE_GetEfuseByte()
131 return (result); in Cy_EFUSE_GetEfuseByte()
154 cy_en_efuse_status_t result; in ProcessOpcode() local
[all …]
/hal_infineon-3.7.0/whd-bsp-integration/
Dcybsp_wifi.c264 cy_rslt_t result = CYBSP_RSLT_WIFI_SDIO_ENUM_TIMEOUT; in _cybsp_wifi_sdio_try_send_cmd() local
267 result = cyhal_sdio_send_cmd(sdio_object, direction, command, argument, response); in _cybsp_wifi_sdio_try_send_cmd()
268 if (result != CY_RSLT_SUCCESS) in _cybsp_wifi_sdio_try_send_cmd()
273 } while((result != CY_RSLT_SUCCESS) && (loop_count <= SDIO_BUS_LEVEL_MAX_RETRIES)); in _cybsp_wifi_sdio_try_send_cmd()
274 return result; in _cybsp_wifi_sdio_try_send_cmd()
300 cy_rslt_t result; in _cybsp_wifi_sdio_card_init() local
318 result = _cybsp_wifi_sdio_try_send_cmd(sdio_object, CYHAL_SDIO_XFER_TYPE_WRITE, in _cybsp_wifi_sdio_card_init()
323 if (result == CY_RSLT_SUCCESS) in _cybsp_wifi_sdio_card_init()
325 result = _cybsp_wifi_sdio_try_send_cmd(sdio_object, CYHAL_SDIO_XFER_TYPE_READ, in _cybsp_wifi_sdio_card_init()
333 if (result == CY_RSLT_SUCCESS) in _cybsp_wifi_sdio_card_init()
[all …]
/hal_infineon-3.7.0/wifi-host-driver/WiFi_Host_Driver/src/
Dwhd_chip.c164 whd_result_t result; in whd_device_core_is_up() local
169result = whd_bus_read_backplane_value(whd_driver, base + AI_IOCTRL_OFFSET, (uint8_t)1, &regdata); in whd_device_core_is_up()
170 if (result != WHD_SUCCESS) in whd_device_core_is_up()
173 return result; in whd_device_core_is_up()
183result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, &regdata… in whd_device_core_is_up()
184 if (result != WHD_SUCCESS) in whd_device_core_is_up()
187 return result; in whd_device_core_is_up()
203 whd_result_t result; in whd_reset_core() local
207 …SPINWAIT( ( ( (result = whd_bus_read_backplane_value(whd_driver, base + AI_RESETSTATUS_OFFSET, (ui… in whd_reset_core()
211result = whd_bus_write_backplane_value(whd_driver, base + AI_RESETCTRL_OFFSET, (uint8_t)1, ( uint3… in whd_reset_core()
[all …]
/hal_infineon-3.7.0/mtb-hal-cat1/source/
Dcyhal_keyscan.c109 cy_rslt_t result = Cy_Keyscan_GetInterruptMaskedStatus(MXKEYSCAN, &int_status); in _cyhal_keyscan_irq_handler() local
110 CY_ASSERT(CY_RSLT_SUCCESS == result); in _cyhal_keyscan_irq_handler()
111 CY_UNUSED_PARAMETER(result); in _cyhal_keyscan_irq_handler()
184 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_keyscan_init_resources() local
187 result = CYHAL_KEYSCAN_RSLT_ERR_INVALID_ARG; in _cyhal_keyscan_init_resources()
192 if (result == CY_RSLT_SUCCESS) in _cyhal_keyscan_init_resources()
195 result = (column_map == NULL) ? CYHAL_KEYSCAN_RSLT_ERR_INVALID_PIN : CY_RSLT_SUCCESS; in _cyhal_keyscan_init_resources()
196 if (result == CY_RSLT_SUCCESS) in _cyhal_keyscan_init_resources()
203 result = cyhal_hwmgr_reserve(&(obj->resource)); in _cyhal_keyscan_init_resources()
210 result = CYHAL_KEYSCAN_RSLT_ERR_INVALID_PIN; in _cyhal_keyscan_init_resources()
[all …]
Dcyhal_dac.c169 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_dac_configure_oa0() local
177 result = Cy_CTB_OpampInit(obj->base_opamp, CY_CTB_OPAMP_0, &config); in _cyhal_dac_configure_oa0()
189 return result; in _cyhal_dac_configure_oa0()
194 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_dac_configure_oa1() local
200 result = Cy_CTB_OpampInit(obj->base_opamp, CY_CTB_OPAMP_1, &cyhal_opamp_default_config); in _cyhal_dac_configure_oa1()
212 return result; in _cyhal_dac_configure_oa1()
225 cy_rslt_t result = (cy_rslt_t)Cy_CTDAC_Init(obj->base_dac, config); in _cyhal_dac_init_hw() local
231 if (CY_RSLT_SUCCESS == result) in _cyhal_dac_init_hw()
237 return result; in _cyhal_dac_init_hw()
245 cy_rslt_t result = CY_RSLT_SUCCESS; in cyhal_dac_init() local
[all …]
Dcyhal_timer.c108 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_timer_init_hw() local
121 result = CYHAL_TIMER_RSLT_ERR_CLOCK_INIT; in _cyhal_timer_init_hw()
124 …else if (CY_RSLT_SUCCESS == (result = _cyhal_utils_allocate_clock(&(obj->tcpwm.clock), timer, CYHA… in _cyhal_timer_init_hw()
129 result = cyhal_timer_set_frequency(obj, CYHAL_TIMER_DEFAULT_FREQ * 3); in _cyhal_timer_init_hw()
131 result = cyhal_timer_set_frequency(obj, CYHAL_TIMER_DEFAULT_FREQ); in _cyhal_timer_init_hw()
133 if (CY_RSLT_SUCCESS == result) in _cyhal_timer_init_hw()
137 result = CYHAL_TIMER_RSLT_ERR_CLOCK_INIT; in _cyhal_timer_init_hw()
142 if (CY_RSLT_SUCCESS == result) in _cyhal_timer_init_hw()
144result = Cy_TCPWM_Counter_Init(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resource), conf… in _cyhal_timer_init_hw()
147 if (result == CY_RSLT_SUCCESS) in _cyhal_timer_init_hw()
[all …]
Dcyhal_pwm.c168 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_pwm_update_clock_freq() local
201 result = _cyhal_utils_peri_pclk_set_divider(pclk, &(obj->tcpwm.clock), div - 1); in _cyhal_pwm_update_clock_freq()
202 if(CY_RSLT_SUCCESS == result) in _cyhal_pwm_update_clock_freq()
207 return result; in _cyhal_pwm_update_clock_freq()
212 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_pwm_init_clock() local
219 result = CYHAL_PWM_RSLT_FAILED_CLOCK_INIT; in _cyhal_pwm_init_clock()
222 …else if (CY_RSLT_SUCCESS == (result = _cyhal_utils_allocate_clock(&obj->tcpwm.clock, &obj->tcpwm.r… in _cyhal_pwm_init_clock()
259 result = CYHAL_PWM_RSLT_FAILED_CLOCK_INIT; in _cyhal_pwm_init_clock()
262 if (CY_RSLT_SUCCESS == result) in _cyhal_pwm_init_clock()
267 return result; in _cyhal_pwm_init_clock()
[all …]
Dcyhal_sdhc.c545 cy_rslt_t result; in _cyhal_sdxx_setup_pin() local
550 result = CYHAL_SDHC_RSLT_ERR_PIN; in _cyhal_sdxx_setup_pin()
558 result = reserve_pin in _cyhal_sdxx_setup_pin()
564 result = reserve_pin in _cyhal_sdxx_setup_pin()
572 if ((_CYHAL_SDHC_CARD_DETECT == weak_func_pin_type) && (CY_RSLT_SUCCESS == result)) in _cyhal_sdxx_setup_pin()
588 result = reserve_pin in _cyhal_sdxx_setup_pin()
593 if (result == CY_RSLT_SUCCESS) in _cyhal_sdxx_setup_pin()
598 return result; in _cyhal_sdxx_setup_pin()
836 cy_rslt_t result; in _cyhal_sdxx_update_hw_clock_config() local
876 result = (cy_rslt_t)Cy_SD_Host_SetBusSpeedMode(sdxx->base, busSpeed, &(sdxx->context)); in _cyhal_sdxx_update_hw_clock_config()
[all …]
Dcyhal_usb_dev.c219 cy_rslt_t result = CYHAL_USB_DEV_RSLT_ERR_CLK_CFG; in _cyhal_usb_dev_reserve_pll() local
228 result = cyhal_hwmgr_reserve(rsc); in _cyhal_usb_dev_reserve_pll()
229 if (CY_RSLT_SUCCESS == result) in _cyhal_usb_dev_reserve_pll()
234 if (CY_RSLT_SUCCESS != result) in _cyhal_usb_dev_reserve_pll()
237 return result; in _cyhal_usb_dev_reserve_pll()
253 cy_rslt_t result = Cy_SysClk_PllConfigure(pll, &cfg); in _cyhal_usb_dev_init_pll() local
256 if (result == CY_RSLT_SUCCESS) in _cyhal_usb_dev_init_pll()
257 result = Cy_SysClk_PllEnable(pll, 1000000); in _cyhal_usb_dev_init_pll()
259 if (result == CY_RSLT_SUCCESS) in _cyhal_usb_dev_init_pll()
262 return result; in _cyhal_usb_dev_init_pll()
[all …]
Dcyhal_spi.c140 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_spi_int_frequency() local
220 result = CYHAL_SPI_RSLT_ERR_CFG_NOT_SUPPORTED; in _cyhal_spi_int_frequency()
225result = _cyhal_utils_peri_pclk_set_freq(_cyhal_scb_get_clock_index(obj->resource.block_num), &(ob… in _cyhal_spi_int_frequency()
226 if (CY_RSLT_SUCCESS == result) in _cyhal_spi_int_frequency()
232 result = cyhal_clock_set_enabled(&(obj->clock), false, false); in _cyhal_spi_int_frequency()
233 if (result == CY_RSLT_SUCCESS) in _cyhal_spi_int_frequency()
235 result = cyhal_clock_set_divider(&(obj->clock), last_dvdr_val); in _cyhal_spi_int_frequency()
237 if (result == CY_RSLT_SUCCESS) in _cyhal_spi_int_frequency()
239 result = cyhal_clock_set_enabled(&(obj->clock), true, false); in _cyhal_spi_int_frequency()
243 return result; in _cyhal_spi_int_frequency()
[all …]
Dcyhal_comp_lp.c213 …cy_rslt_t result = _cyhal_lpcomp_init(obj->base_lpcomp, _CYHAL_COMP_GET_CHANNEL(obj->resource.chan… in _cyhal_comp_lp_init_hw() local
215 if(CY_RSLT_SUCCESS == result) in _cyhal_comp_lp_init_hw()
226 return result; in _cyhal_comp_lp_init_hw()
234 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_comp_lp_init() local
249 result = CYHAL_COMP_RSLT_ERR_INVALID_PIN; in _cyhal_comp_lp_init()
260 result = CYHAL_COMP_RSLT_ERR_INVALID_PIN; in _cyhal_comp_lp_init()
263 if ((CY_RSLT_SUCCESS == result) && in _cyhal_comp_lp_init()
267 result = CYHAL_COMP_RSLT_ERR_INVALID_PIN; in _cyhal_comp_lp_init()
274 if(CY_RSLT_SUCCESS == result) in _cyhal_comp_lp_init()
276 result = cyhal_hwmgr_reserve(&rsc); in _cyhal_comp_lp_init()
[all …]
Dcyhal_ipc.c299 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_ipc_sema_init() local
313result = (cy_rslt_t)Cy_IPC_Sema_Init(CY_IPC_CHAN_SEMA, _CYHAL_IPC_PDL_SEMA_COUNT, ipc_sema_array); in _cyhal_ipc_sema_init()
315 result = (cy_rslt_t)Cy_IPC_Sema_Init(CY_IPC_CHAN_SEMA, 0, NULL); in _cyhal_ipc_sema_init()
317 if (CY_RSLT_SUCCESS == result) in _cyhal_ipc_sema_init()
324 if (CY_RSLT_SUCCESS == result) in _cyhal_ipc_sema_init()
333 return result; in _cyhal_ipc_sema_init()
342 cy_rslt_t result = ~CY_RSLT_SUCCESS; in _cyhal_ipc_sema_take() local
360 …while ((result = (cy_rslt_t)Cy_IPC_Sema_Set(obj->sema_number, obj->sema_preemptable)) == (cy_rslt_… in _cyhal_ipc_sema_take()
364 if ((cy_rslt_t)CY_IPC_SEMA_LOCKED != result) in _cyhal_ipc_sema_take()
366 bool sema_not_yet_available = ((cy_rslt_t)CY_IPC_SEMA_NOT_ACQUIRED == result); in _cyhal_ipc_sema_take()
[all …]
Dcyhal_adc_sar.c841 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_adc_populate_pdl_config() local
852 result = _cyhal_adc_convert_resolution(hal_config->resolution, &pdl_config->subResolution); in _cyhal_adc_populate_pdl_config()
854 if(CY_RSLT_SUCCESS == result) in _cyhal_adc_populate_pdl_config()
860 result = _cyhal_adc_convert_average_count(hal_config->average_count, &pdl_config->avgCnt); in _cyhal_adc_populate_pdl_config()
862 if(CY_RSLT_SUCCESS == result) in _cyhal_adc_populate_pdl_config()
878 return result; in _cyhal_adc_populate_pdl_config()
885 uint32_t result = 0; in _cyhal_adc_convert_average_mode() local
888 result |= CY_SAR_AVG_MODE_SEQUENTIAL_ACCUM; in _cyhal_adc_convert_average_mode()
893 result |= (CY_SAR_AVG_MODE_INTERLEAVED | SAR_SAMPLE_CTRL_AVG_SHIFT_Msk); in _cyhal_adc_convert_average_mode()
897 result |= CY_SAR_AVG_MODE_SEQUENTIAL_FIXED; in _cyhal_adc_convert_average_mode()
[all …]
Dcyhal_adc_mic.c247 cy_rslt_t result = CY_RSLT_SUCCESS; in _cyhal_adc_config_hw() local
271 result = CYHAL_ADC_RSLT_BAD_ARGUMENT; in _cyhal_adc_config_hw()
280 result = CYHAL_ADC_RSLT_BAD_ARGUMENT; in _cyhal_adc_config_hw()
284 if (CY_RSLT_SUCCESS == result) in _cyhal_adc_config_hw()
294 …(result = _cyhal_utils_allocate_clock(&(obj->clock), &(obj->resource), CYHAL_CLOCK_BLOCK_PERIPHERA… in _cyhal_adc_config_hw()
297result = cyhal_clock_set_enabled(&(obj->clock), true /* enabled */, false /* don't wait for lock. … in _cyhal_adc_config_hw()
301 if (CY_RSLT_SUCCESS == result && obj->clock.block != CYHAL_CLOCK_BLOCK_HF) in _cyhal_adc_config_hw()
304 result = CYHAL_ADC_RSLT_FAILED_CLOCK; in _cyhal_adc_config_hw()
307 if (CY_RSLT_SUCCESS == result) in _cyhal_adc_config_hw()
313 result = CYHAL_ADC_RSLT_FAILED_CLOCK; in _cyhal_adc_config_hw()
[all …]
Dcyhal_uart.c610 cy_rslt_t result; in _cyhal_uart_setup_resources() local
677 result = cyhal_hwmgr_reserve(&rsc_to_reserve); in _cyhal_uart_setup_resources()
679 if (CY_RSLT_SUCCESS != result) in _cyhal_uart_setup_resources()
681 return result; in _cyhal_uart_setup_resources()
687 if ((result == CY_RSLT_SUCCESS) && NC != tx) in _cyhal_uart_setup_resources()
689result = _cyhal_utils_reserve_and_connect(tx_map, (uint8_t)CYHAL_PIN_MAP_DRIVE_MODE_SCB_UART_TX); in _cyhal_uart_setup_resources()
690 if (result == CY_RSLT_SUCCESS) in _cyhal_uart_setup_resources()
697 if ((result == CY_RSLT_SUCCESS) && NC != rx) in _cyhal_uart_setup_resources()
699result = _cyhal_utils_reserve_and_connect(rx_map, (uint8_t)CYHAL_PIN_MAP_DRIVE_MODE_SCB_UART_RX); in _cyhal_uart_setup_resources()
700 if (result == CY_RSLT_SUCCESS) in _cyhal_uart_setup_resources()
[all …]
Dcyhal_qspi.c339 cy_rslt_t result = _cyhal_utils_reserve_and_connect(mapping, drive_mode); in _cyhal_qspi_check_pin_and_reserve() local
341 cy_rslt_t result = cyhal_connect_pin(mapping, drive_mode); in _cyhal_qspi_check_pin_and_reserve()
344 return result; in _cyhal_qspi_check_pin_and_reserve()
435 cy_rslt_t result = _cyhal_qspi_check_command_struct(command); in _cyhal_qspi_command_transfer() local
437 if (CY_RSLT_SUCCESS == result) in _cyhal_qspi_command_transfer()
454 result = CYHAL_QSPI_RSLT_ERR_BUS_WIDTH; in _cyhal_qspi_command_transfer()
459 result = CYHAL_QSPI_RSLT_ERR_DATARATE; in _cyhal_qspi_command_transfer()
464 if (CY_RSLT_SUCCESS == result) in _cyhal_qspi_command_transfer()
489result = (cy_rslt_t)Cy_SMIF_TransmitCommand(obj->base, (uint8_t)(command->instruction.value & 0xFF… in _cyhal_qspi_command_transfer()
493 result = (cy_rslt_t)Cy_SMIF_TransmitCommand_Ext(obj->base, command->instruction.value, in _cyhal_qspi_command_transfer()
[all …]
/hal_infineon-3.7.0/wifi-host-driver/WiFi_Host_Driver/src/bus_protocols/
Dwhd_bus_sdio_protocol.c237 whd_result_t result = WHD_SUCCESS; in whd_bus_sdio_wait_for_wlan_event() local
241 REFERENCE_DEBUG_ONLY_VARIABLE(result); in whd_bus_sdio_wait_for_wlan_event()
250 result = whd_allow_wlan_bus_to_sleep(whd_driver); in whd_bus_sdio_wait_for_wlan_event()
251 whd_assert("Error setting wlan sleep", (result == WHD_SUCCESS) || (result == WHD_PENDING) ); in whd_bus_sdio_wait_for_wlan_event()
253 if (result == WHD_SUCCESS) in whd_bus_sdio_wait_for_wlan_event()
263 result = whd_bus_poke_wlan(whd_driver); in whd_bus_sdio_wait_for_wlan_event()
264 whd_assert("Poking failed!", result == WHD_SUCCESS); in whd_bus_sdio_wait_for_wlan_event()
266 result = cy_rtos_get_semaphore(transceive_semaphore, (uint32_t)MIN_OF(timeout_ms, in whd_bus_sdio_wait_for_wlan_event()
271 result = cy_rtos_get_semaphore(transceive_semaphore, (uint32_t)MIN_OF(timeout_ms, in whd_bus_sdio_wait_for_wlan_event()
274 …whd_assert("Could not get whd sleep semaphore\n", (result == CY_RSLT_SUCCESS) || (result == CY_RTO… in whd_bus_sdio_wait_for_wlan_event()
[all …]
Dwhd_bus_spi_protocol.c265 …whd_result_t result = whd_bus_spi_transfer_buffer(whd_driver, BUS_WRITE, WLAN_FUNCTION, 0, buffer); in whd_bus_spi_send_buffer() local
267 if (result == WHD_SUCCESS) in whd_bus_spi_send_buffer()
271 CHECK_RETURN(result); in whd_bus_spi_send_buffer()
284 whd_result_t result; in whd_bus_spi_transfer_buffer() local
304 while ( ( (result = in whd_bus_spi_transfer_buffer()
312 if (result != WHD_SUCCESS) in whd_bus_spi_transfer_buffer()
315 return result; in whd_bus_spi_transfer_buffer()
362 result = whd_bus_spi_transfer(whd_driver, NULL, in whd_bus_spi_transfer_buffer()
370result = whd_bus_spi_transfer(whd_driver, (uint8_t *)gspi_header, transfer_size, NULL, 0, 0); in whd_bus_spi_transfer_buffer()
373 return result; in whd_bus_spi_transfer_buffer()
[all …]
/hal_infineon-3.7.0/abstraction-rtos/source/
Dcy_worker_thread.c61 cy_rslt_t result; in cy_worker_thread_func() local
67 result = cy_rtos_get_queue(&worker->event_queue, &dispatch_info, CY_RTOS_NEVER_TIMEOUT, in cy_worker_thread_func()
69 if (result == CY_RSLT_SUCCESS) in cy_worker_thread_func()
98 cy_rslt_t result = cy_rtos_init_queue(&new_worker->event_queue, in cy_worker_thread_create() local
103 if (result == CY_RSLT_SUCCESS) in cy_worker_thread_create()
106 result = cy_rtos_create_thread(&new_worker->thread, in cy_worker_thread_create()
116 if (result != CY_RSLT_SUCCESS) in cy_worker_thread_create()
122 return result; in cy_worker_thread_create()
131 cy_rslt_t result = CY_RSLT_SUCCESS; in cy_worker_thread_delete() local
146 result = cy_rtos_put_queue(&old_worker->event_queue, &dispatch_info, 0, in_isr); in cy_worker_thread_delete()
[all …]
/hal_infineon-3.7.0/btstack-integration/COMPONENT_BTSS-IPC/platform/common/
Dcybt_debug_uart.c159 cy_rslt_t result = CYBT_ERR_GENERIC; in cybt_enqueue_tx_data() local
165 result = cy_rtos_get_semaphore(&cy_trans_uart.tx_ready, CY_RTOS_NEVER_TIMEOUT, false); in cybt_enqueue_tx_data()
167 if (CY_RSLT_SUCCESS != result) in cybt_enqueue_tx_data()
170 result = cy_rtos_count_queue(&DEBUG_UART_TX_TASK_QUEUE, &count); in cybt_enqueue_tx_data()
171 if ( (result != CY_RSLT_SUCCESS) || (count == DEBUG_UART_TX_TASK_QUEUE_COUNT)) in cybt_enqueue_tx_data()
205 result = cy_rtos_put_queue (&DEBUG_UART_TX_TASK_QUEUE, (void *) &p_buf_start, 0, false); in cybt_enqueue_tx_data()
207 if (CY_RSLT_SUCCESS != result) in cybt_enqueue_tx_data()
218 cy_rslt_t result = CYBT_ERR_GENERIC; in cybt_debug_uart_send_wiced_hci_buf() local
224 result = cy_rtos_get_semaphore(&cy_trans_uart.tx_ready, CY_RTOS_NEVER_TIMEOUT, false); in cybt_debug_uart_send_wiced_hci_buf()
226 if (CY_RSLT_SUCCESS != result) in cybt_debug_uart_send_wiced_hci_buf()
[all …]
/hal_infineon-3.7.0/mtb-template-cat1/files/cat1a/
Dcybsp.c66 cy_rslt_t result = CY_RSLT_SUCCESS; in cybsp_register_sysclk_pm_callback() local
78 result = CYBSP_RSLT_ERR_SYSCLK_PM_CALLBACK; in cybsp_register_sysclk_pm_callback()
80 return result; in cybsp_register_sysclk_pm_callback()
95 cy_rslt_t result = cyhal_hwmgr_init(); in cybsp_init() local
97 if (CY_RSLT_SUCCESS == result) in cybsp_init()
99 result = cyhal_syspm_init(); in cybsp_init()
103 if (CY_RSLT_SUCCESS == result) in cybsp_init()
110 cy_rslt_t result = CY_RSLT_SUCCESS; in cybsp_init()
126 if (CY_RSLT_SUCCESS == result) in cybsp_init()
129 result = cybsp_register_custom_sysclk_pm_callback(); in cybsp_init()
[all …]
/hal_infineon-3.7.0/mtb-template-cat1/files/cat1b/
Dcybsp.c52 cy_rslt_t result = cyhal_hwmgr_init(); in cybsp_init() local
54 if (CY_RSLT_SUCCESS == result) in cybsp_init()
56 result = cyhal_syspm_init(); in cybsp_init()
60 if (CY_RSLT_SUCCESS == result) in cybsp_init()
67 cy_rslt_t result = CY_RSLT_SUCCESS; in cybsp_init()
72 if (CY_RSLT_SUCCESS == result) in cybsp_init()
75 result = cybsp_register_custom_sysclk_pm_callback(); in cybsp_init()
79 if (CY_RSLT_SUCCESS == result) in cybsp_init()
81 result = cybsp_syspm_dsram_init(); in cybsp_init()
84 if (CY_RSLT_SUCCESS == result) in cybsp_init()
[all …]
/hal_infineon-3.7.0/mtb-template-cat1/files/cat1c/
Dcybsp.c61 cy_rslt_t result = CY_RSLT_SUCCESS; in cybsp_register_sysclk_pm_callback() local
73 result = CYBSP_RSLT_ERR_SYSCLK_PM_CALLBACK; in cybsp_register_sysclk_pm_callback()
75 return result; in cybsp_register_sysclk_pm_callback()
90 cy_rslt_t result = cyhal_hwmgr_init(); in cybsp_init() local
92 if (CY_RSLT_SUCCESS == result) in cybsp_init()
94 result = cyhal_syspm_init(); in cybsp_init()
98 if (CY_RSLT_SUCCESS == result) in cybsp_init()
105 cy_rslt_t result = CY_RSLT_SUCCESS; in cybsp_init()
120 if (CY_RSLT_SUCCESS == result) in cybsp_init()
123 result = cybsp_register_custom_sysclk_pm_callback(); in cybsp_init()
[all …]

12345