/hal_infineon-3.7.0/mtb-hal-cat1/source/ |
D | cyhal_quaddec.c | 83 cy_rslt_t rslt; in _cyhal_quaddec_configure_clock() local 95 …rslt = _cyhal_utils_allocate_clock(&tcpwm->clock, &tcpwm->resource, CYHAL_CLOCK_BLOCK_PERIPHERAL_1… in _cyhal_quaddec_configure_clock() 97 rslt = cyhal_clock_allocate(&tcpwm->clock, CYHAL_CLOCK_BLOCK_PERIPHERAL_16BIT); in _cyhal_quaddec_configure_clock() 99 rslt = CY_RSLT_SUCCESS; // No need to allocate the TCPWM clock as it is a shared resource in _cyhal_quaddec_configure_clock() 102 rslt = CYHAL_QUADDEC_RSLT_ERR_CLOCK_INIT; in _cyhal_quaddec_configure_clock() 105 if (rslt == CY_RSLT_SUCCESS) in _cyhal_quaddec_configure_clock() 225 cy_rslt_t rslt = CYHAL_QUADDEC_RSLT_ERR_BAD_ARGUMENT; in _cyhal_quaddec_pin_init() local 229 rslt = _cyhal_utils_reserve_and_connect(pinMap, CYHAL_PIN_MAP_DRIVE_MODE_TCPWM_TR_IN); in _cyhal_quaddec_pin_init() 231 rslt = CYHAL_HWMGR_RSLT_ERR_INVALID; // Note: Intentional to match PSoC behavior in _cyhal_quaddec_pin_init() 233 cy_rslt_t rslt = cyhal_gpio_init(pin, CYHAL_GPIO_DIR_INPUT, CYHAL_GPIO_DRIVE_NONE, false); in _cyhal_quaddec_pin_init() local [all …]
|
D | cyhal_dma.c | 75 cy_rslt_t rslt; in cyhal_dma_init_adv() local 81 rslt = _cyhal_dma_dw_init(obj, src_trigger, dest_trigger, priority); in cyhal_dma_init_adv() 84 rslt = _cyhal_dma_dmac_init(obj, src_trigger, dest_trigger, priority); in cyhal_dma_init_adv() 93 rslt = _cyhal_dma_dmac_init(obj, src_trigger, dest_trigger, priority); in cyhal_dma_init_adv() 95 if(CYHAL_HWMGR_RSLT_ERR_NONE_FREE == rslt) in cyhal_dma_init_adv() 96 rslt = _cyhal_dma_dw_init(obj, src_trigger, dest_trigger, priority); in cyhal_dma_init_adv() 100 rslt = _cyhal_dma_dw_init(obj, src_trigger, dest_trigger, priority); in cyhal_dma_init_adv() 102 if(CYHAL_HWMGR_RSLT_ERR_NONE_FREE == rslt) in cyhal_dma_init_adv() 103 rslt = _cyhal_dma_dmac_init(obj, src_trigger, dest_trigger, priority); in cyhal_dma_init_adv() 107 if (CY_RSLT_SUCCESS == rslt) in cyhal_dma_init_adv() [all …]
|
D | cyhal_rtc.c | 215 cy_rslt_t rslt = CY_RSLT_SUCCESS; in _cyhal_rtc_init_common() local 231 rslt = CY_RSLT_RTC_NOT_INITIALIZED; in _cyhal_rtc_init_common() 244 if (rslt == CY_RSLT_SUCCESS) in _cyhal_rtc_init_common() 250 return rslt; in _cyhal_rtc_init_common() 273 cy_rslt_t rslt = _cyhal_rtc_init_common(cfg->config); in cyhal_rtc_init_cfg() local 280 rslt = Cy_RTC_EnableDstTime(cfg->dst_config, &dateTime); in cyhal_rtc_init_cfg() 281 if (rslt == CY_RSLT_SUCCESS) in cyhal_rtc_init_cfg() 287 return rslt; in cyhal_rtc_init_cfg() 336 cy_rslt_t rslt; in cyhal_rtc_write_direct() local 347 rslt = Cy_RTC_SetDateAndTimeDirect(sec, min, hour, day, month, year2digit); in cyhal_rtc_write_direct() [all …]
|
D | cyhal_clock.c | 1261 cy_rslt_t rslt = Cy_SysClk_WcoEnable(wait_for_lock ? 1000000UL : 0UL); in _cyhal_clock_set_enabled_wco() local 1263 return wait_for_lock ? rslt : CY_RSLT_SUCCESS; in _cyhal_clock_set_enabled_wco() 1447 cy_rslt_t rslt = Cy_SysClk_ClkPathSetSource(clock->channel, clkpath_src); in _cyhal_clock_set_source_pathmux() local 1451 if (CY_RSLT_SUCCESS == rslt) in _cyhal_clock_set_source_pathmux() 1457 return rslt; in _cyhal_clock_set_source_pathmux() 1494 cy_rslt_t rslt = (enabled) in _cyhal_clock_set_enabled_fll() local 1500 if (CY_RSLT_SUCCESS == rslt) in _cyhal_clock_set_enabled_fll() 1506 return rslt; in _cyhal_clock_set_enabled_fll() 1518 cy_rslt_t rslt = CY_RSLT_SUCCESS; in _cyhal_clock_set_frequency_fll() local 1524 rslt = CYHAL_CLOCK_RSLT_ERR_SOURCE; in _cyhal_clock_set_frequency_fll() [all …]
|
D | cyhal_hwmgr.c | 181 cy_rslt_t rslt = _cyhal_is_set(cyhal_used, obj->type, obj->block_num, obj->channel_num, &isSet); in cyhal_hwmgr_reserve() local 182 if (rslt == CY_RSLT_SUCCESS && isSet) in cyhal_hwmgr_reserve() 184 rslt = CYHAL_HWMGR_RSLT_ERR_INUSE; in cyhal_hwmgr_reserve() 187 if (rslt == CY_RSLT_SUCCESS) in cyhal_hwmgr_reserve() 189 rslt = _cyhal_set_bit(cyhal_used, obj->type, obj->block_num, obj->channel_num); in cyhal_hwmgr_reserve() 193 return rslt; in cyhal_hwmgr_reserve() 199 cy_rslt_t rslt = _cyhal_clear_bit(cyhal_used, obj->type, obj->block_num, obj->channel_num); in cyhal_hwmgr_free() local 200 CY_UNUSED_PARAMETER(rslt); /* CY_ASSERT only processes in DEBUG, ignores for others */ in cyhal_hwmgr_free() 201 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_hwmgr_free()
|
D | cyhal_syspm.c | 402 cy_rslt_t rslt = CY_RSLT_SUCCESS; in cyhal_syspm_init() local 420 rslt = CYHAL_SYSPM_RSLT_INIT_ERROR; in cyhal_syspm_init() 422 return rslt; in cyhal_syspm_init() 458 cy_rslt_t rslt; in cyhal_syspm_set_system_state() 469 rslt = Cy_SysPm_SystemLpActiveExit(); in cyhal_syspm_set_system_state() 471 rslt = Cy_SysPm_SystemEnterLp(); in cyhal_syspm_set_system_state() 476 rslt = Cy_SysPm_SystemLpActiveEnter(); in cyhal_syspm_set_system_state() 478 rslt = Cy_SysPm_SystemEnterUlp(); in cyhal_syspm_set_system_state() 484 rslt = CYHAL_SYSPM_RSLT_BAD_ARGUMENT; in cyhal_syspm_set_system_state() 487 return rslt; in cyhal_syspm_set_system_state()
|
D | cyhal_pdmpcm.c | 483 cy_rslt_t rslt; in _cyhal_pdm_pcm_dma_start() local 510 rslt = cyhal_dma_configure(&(obj->dma), &dma_cfg); in _cyhal_pdm_pcm_dma_start() 512 if (CY_RSLT_SUCCESS == rslt) in _cyhal_pdm_pcm_dma_start() 514 rslt = cyhal_dma_enable(&(obj->dma)); in _cyhal_pdm_pcm_dma_start() 518 if(paired_channel >= 0 && CY_RSLT_SUCCESS == rslt) in _cyhal_pdm_pcm_dma_start() 535 rslt = cyhal_dma_configure(&(obj->dma_paired), &dma_cfg_paired); in _cyhal_pdm_pcm_dma_start() 537 if (CY_RSLT_SUCCESS == rslt) in _cyhal_pdm_pcm_dma_start() 539 rslt = cyhal_dma_enable(&(obj->dma_paired)); in _cyhal_pdm_pcm_dma_start() 544 if (CY_RSLT_SUCCESS == rslt) in _cyhal_pdm_pcm_dma_start() 547 rslt = cyhal_dma_start_transfer(&(obj->dma)); in _cyhal_pdm_pcm_dma_start() [all …]
|
D | cyhal_tcpwm_common.c | 523 cy_rslt_t rslt = _cyhal_utils_peri_pclk_disable_divider(pclk, &(obj->clock)); in _cyhal_tcpwm_irq_handler() local 524 CY_UNUSED_PARAMETER(rslt); /* CY_ASSERT only processes in DEBUG, ignores for others */ in _cyhal_tcpwm_irq_handler() 525 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in _cyhal_tcpwm_irq_handler() 716 cy_rslt_t rslt = CY_RSLT_SUCCESS; in _cyhal_tcpwm_irq_handler() local 720 rslt = CYHAL_TCPWM_RSLT_ERR_BAD_ARGUMENT; in _cyhal_tcpwm_irq_handler() 726 if(CY_RSLT_SUCCESS == rslt) in _cyhal_tcpwm_irq_handler() 742 rslt = CYHAL_TCPWM_RSLT_ERR_BAD_ARGUMENT; in _cyhal_tcpwm_irq_handler() 754 rslt = _cyhal_connect_signal(source, dest); in _cyhal_tcpwm_irq_handler() 755 if (rslt == CY_RSLT_SUCCESS) in _cyhal_tcpwm_irq_handler() 764 rslt = CYHAL_TCPWM_RSLT_ERR_NO_FREE_INPUT_SIGNALS; in _cyhal_tcpwm_irq_handler() [all …]
|
D | cyhal_lptimer.c | 538 cy_rslt_t rslt = CYHAL_LPTIMER_RSLT_ERR_NOT_SUPPORTED; in cyhal_lptimer_init() local 550 rslt = cyhal_hwmgr_reserve(&temp); in cyhal_lptimer_init() 551 if(rslt == CY_RSLT_SUCCESS) in cyhal_lptimer_init() 558 if (CY_RSLT_SUCCESS == rslt) in cyhal_lptimer_init() 575 rslt = (cy_rslt_t) Cy_MCWDT_Init(obj->base, &cfg); in cyhal_lptimer_init() 578 if (CY_RSLT_SUCCESS == rslt) in cyhal_lptimer_init() 585 if (CY_RSLT_SUCCESS == rslt) in cyhal_lptimer_init() 590 if (CY_RSLT_SUCCESS == rslt) in cyhal_lptimer_init() 603 if (CY_RSLT_SUCCESS != rslt) in cyhal_lptimer_init() 608 return rslt; in cyhal_lptimer_init()
|
D | cyhal_comp_lp.c | 116 cy_rslt_t rslt = CY_RSLT_SUCCESS; in _cyhal_comp_lp_convert_power() local 132 rslt = CYHAL_COMP_RSLT_ERR_BAD_ARGUMENT; in _cyhal_comp_lp_convert_power() 147 rslt = CYHAL_COMP_RSLT_ERR_BAD_ARGUMENT; in _cyhal_comp_lp_convert_power() 151 return rslt; in _cyhal_comp_lp_convert_power() 402 cy_rslt_t rslt = _cyhal_comp_lp_convert_power(power, &power_level); in _cyhal_comp_lp_set_power() local 403 if (CY_RSLT_SUCCESS == rslt) in _cyhal_comp_lp_set_power() 407 return rslt; in _cyhal_comp_lp_set_power()
|
D | cyhal_dma_dw.c | 431 cy_rslt_t rslt = _cyhal_hwmgr_allocate_with_connection( in _cyhal_dma_dw_init() local 433 if(rslt != CY_RSLT_SUCCESS) in _cyhal_dma_dw_init() 434 return rslt; in _cyhal_dma_dw_init() 703 cy_rslt_t rslt = _cyhal_connect_signal(source, dest); in _cyhal_dma_dw_connect_digital() local 704 if (CY_RSLT_SUCCESS == rslt) in _cyhal_dma_dw_connect_digital() 709 return rslt; in _cyhal_dma_dw_connect_digital() 744 cy_rslt_t rslt = _cyhal_disconnect_signal(source, dest); in _cyhal_dma_dw_disconnect_digital() local 745 if (CY_RSLT_SUCCESS == rslt) in _cyhal_dma_dw_disconnect_digital() 750 return rslt; in _cyhal_dma_dw_disconnect_digital()
|
D | cyhal_gpio.c | 468 cy_rslt_t rslt = _cyhal_connect_signal(source, dest); in cyhal_gpio_connect_digital() local 469 if (CY_RSLT_SUCCESS == rslt) in cyhal_gpio_connect_digital() 473 return rslt; in cyhal_gpio_connect_digital() 548 cy_rslt_t rslt = _cyhal_disconnect_signal(source, dest); in cyhal_gpio_disconnect_digital() local 549 if (CY_RSLT_SUCCESS == rslt) in cyhal_gpio_disconnect_digital() 553 return rslt; in cyhal_gpio_disconnect_digital()
|
D | cyhal_dma_dmac.c | 505 …cy_rslt_t rslt = Cy_AXIDMAC_Descriptor_Init(GET_RESOURCE_DATA(&obj->descriptor), GET_RESOURCE_DATA… in _cyhal_dma_dmac_stage() local 509 …cy_rslt_t rslt = Cy_DMAC_Descriptor_Init(GET_RESOURCE_DATA(&obj->descriptor), GET_RESOURCE_DATA(&o… in _cyhal_dma_dmac_stage() local 512 …cy_rslt_t rslt = Cy_DMAC_Descriptor_Init(base, obj->resource.channel_num, obj->descriptor, GET_RES… in _cyhal_dma_dmac_stage() local 515 if(CY_AXIDMAC_SUCCESS != rslt) in _cyhal_dma_dmac_stage() 517 if(CY_DMAC_SUCCESS != rslt) in _cyhal_dma_dmac_stage() 594 cy_rslt_t rslt = _cyhal_hwmgr_allocate_with_connection( in _cyhal_dma_dmac_init() local 596 if(rslt != CY_RSLT_SUCCESS) in _cyhal_dma_dmac_init() 597 return rslt; in _cyhal_dma_dmac_init()
|
D | cyhal_timer.c | 238 cy_rslt_t rslt; in cyhal_timer_configure() local 256 rslt = _cyhal_t2timer_configure(&obj->t2timer, &t2t_cfg); in cyhal_timer_configure() 271 …rslt = (cy_rslt_t)Cy_TCPWM_Counter_Init(obj->tcpwm.base, _CYHAL_TCPWM_CNT_NUMBER(obj->tcpwm.resour… in cyhal_timer_configure() 279 return rslt; in cyhal_timer_configure()
|
D | cyhal_utils_impl.c | 71 cy_rslt_t rslt = cyhal_disconnect_pin(pin); in _cyhal_utils_disconnect_and_free() local 72 CY_UNUSED_PARAMETER(rslt); /* CY_ASSERT only processes in DEBUG, ignores for others */ in _cyhal_utils_disconnect_and_free() 73 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in _cyhal_utils_disconnect_and_free()
|
D | cyhal_adc_sar.c | 1339 cy_rslt_t rslt; in cyhal_adc_free() local 1340 rslt = cyhal_adc_disable_output(obj, CYHAL_ADC_OUTPUT_SCAN_COMPLETE); in cyhal_adc_free() 1341 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_adc_free() 1344 rslt = cyhal_adc_disconnect_digital(obj, obj->source, CYHAL_ADC_INPUT_START_SCAN); in cyhal_adc_free() 1345 CY_ASSERT(CY_RSLT_SUCCESS == rslt); in cyhal_adc_free() 1347 (void)rslt; // Disable compiler warning in release build in cyhal_adc_free()
|
D | cyhal_spi.c | 1364 cy_rslt_t rslt = cyhal_spi_transfer_async(obj, tx, tx_length, rx, rx_length); in cyhal_spi_transfer() local 1365 if (rslt == CY_RSLT_SUCCESS) in cyhal_spi_transfer() 1370 return rslt; in cyhal_spi_transfer()
|
/hal_infineon-3.7.0/whd-bsp-integration/ |
D | cybsp_wifi.c | 546 cy_rslt_t rslt = cyhal_spi_init(&spi_obj, in _cybsp_wifi_spi_init_bus() local 550 if (CY_RSLT_SUCCESS == rslt) in _cybsp_wifi_spi_init_bus() 552 rslt = cyhal_spi_set_frequency(&spi_obj, 50000000); // 50 MHz operation in _cybsp_wifi_spi_init_bus() 553 if (CY_RSLT_SUCCESS == rslt) in _cybsp_wifi_spi_init_bus() 560 rslt = whd_bus_spi_attach(whd_drv, &whd_spi_config, &spi_obj); in _cybsp_wifi_spi_init_bus() 568 return rslt; in _cybsp_wifi_spi_init_bus() 581 cy_rslt_t rslt; in _cybsp_wifi_m2m_init_bus() local 588 rslt = whd_bus_m2m_attach(whd_drv, &whd_m2m_config, &m2m_obj); in _cybsp_wifi_m2m_init_bus() 590 return rslt; in _cybsp_wifi_m2m_init_bus()
|
/hal_infineon-3.7.0/abstraction-rtos/source/COMPONENT_THREADX/ |
D | cyabs_rtos_threadx.c | 235 cy_rslt_t rslt = cy_rtos_is_thread_running(thread, &running); in cy_rtos_get_thread_state() local 236 if (CY_RSLT_SUCCESS != rslt) in cy_rtos_get_thread_state() 238 return rslt; in cy_rtos_get_thread_state() 880 cy_rslt_t rslt = in cy_rtos_start_timer() local 883 if (CY_RSLT_SUCCESS != rslt) in cy_rtos_start_timer() 885 return rslt; in cy_rtos_start_timer() 915 cy_rslt_t rslt = in cy_rtos_is_running_timer() local 918 if (CY_RSLT_SUCCESS == rslt) in cy_rtos_is_running_timer() 922 return rslt; in cy_rtos_is_running_timer()
|