/hal_infineon-3.4.0/mtb-hal-cat1/COMPONENT_PSOC6HAL/source/ |
D | cyhal_utils_psoc.c | 394 cy_rslt_t _cyhal_utils_set_clock_frequency(cyhal_clock_t* clock, uint32_t hz, const cyhal_clock_tol… in _cyhal_utils_set_clock_frequency() argument 402 … if (CY_RSLT_SUCCESS == _cyhal_utils_find_hf_clk_div(source_hz, hz, tolerance, false, ÷r)) in _cyhal_utils_set_clock_frequency() 412 return cyhal_clock_set_frequency(clock, hz, tolerance); in _cyhal_utils_set_clock_frequency() 452 cy_rslt_t _cyhal_utils_find_hf_source_n_divider(cyhal_clock_t *clock, uint32_t hz, const cyhal_cloc… in _cyhal_utils_find_hf_source_n_divider() argument 456 CY_ASSERT(hz != 0); in _cyhal_utils_find_hf_source_n_divider() 477 …((NULL != tolerance) && (_cyhal_utils_calculate_tolerance(tolerance->type, hz, cur_hf_source_freq)… in _cyhal_utils_find_hf_source_n_divider() 494 … if (CY_RSLT_SUCCESS == div_find_func(cur_hf_source_freq, hz, NULL, true, &cur_clock_divider)) in _cyhal_utils_find_hf_source_n_divider() 497 …_clock_tolerance = abs(_cyhal_utils_calculate_tolerance(CYHAL_TOLERANCE_HZ, hz, cur_divided_freq)); in _cyhal_utils_find_hf_source_n_divider() 504 if (cur_divided_freq == hz) in _cyhal_utils_find_hf_source_n_divider() 517 …uint32_t achieved_tolerance = abs(_cyhal_utils_calculate_tolerance(tolerance->type, hz, best_clock… in _cyhal_utils_find_hf_source_n_divider() [all …]
|
D | cyhal_clock.c | 514 static cy_rslt_t _cyhal_clock_set_frequency_unsupported(cyhal_clock_t *clock, uint32_t hz, const cy… in _cyhal_clock_set_frequency_unsupported() argument 517 CY_UNUSED_PARAMETER(hz); in _cyhal_clock_set_frequency_unsupported() 773 static cy_rslt_t _cyhal_clock_set_frequency_ext(cyhal_clock_t *clock, uint32_t hz, const cyhal_cloc… in _cyhal_clock_set_frequency_ext() argument 778 Cy_SysClk_ExtClkSetFrequency(hz); in _cyhal_clock_set_frequency_ext() 1125 static cy_rslt_t _cyhal_clock_set_frequency_fll(cyhal_clock_t *clock, uint32_t hz, const cyhal_cloc… in _cyhal_clock_set_frequency_fll() argument 1142 uint32_t new_hf_freq = hz /*new_freq*/ >> div; in _cyhal_clock_set_frequency_fll() 1153 rslt = Cy_SysClk_FllConfigure(src_freq, hz/*new_freq*/, CY_SYSCLK_FLLPLL_OUTPUT_AUTO); in _cyhal_clock_set_frequency_fll() 1238 static cy_rslt_t _cyhal_clock_set_frequency_pll(cyhal_clock_t *clock, uint32_t hz, const cyhal_cloc… in _cyhal_clock_set_frequency_pll() argument 1257 uint32_t new_hf_freq = hz/*new_freq*/ >> div; in _cyhal_clock_set_frequency_pll() 1267 .outputFreq = hz/*new_freq*/, in _cyhal_clock_set_frequency_pll() [all …]
|
D | cyhal_spi.c | 114 static cy_rslt_t _cyhal_spi_int_frequency(cyhal_spi_t *obj, uint32_t hz, uint8_t *over_sample_val) in _cyhal_spi_int_frequency() argument 134 oversampled_freq = hz * oversample_value; in _cyhal_spi_int_frequency() 135 … if ((hz * oversample_value > peri_freq) && (_CYHAL_SPI_OVERSAMPLE_MIN == oversample_value)) in _cyhal_spi_int_frequency() 139 else if (hz * oversample_value > peri_freq) in _cyhal_spi_int_frequency() 144 divider_value = _cyhal_utils_divider_value(&(obj->resource), hz * oversample_value, 0); in _cyhal_spi_int_frequency() 170 float desired_period_us_divided = 5e5f * (1 / (float)hz); in _cyhal_spi_int_frequency() 809 cy_rslt_t cyhal_spi_set_frequency(cyhal_spi_t *obj, uint32_t hz) in cyhal_spi_set_frequency() argument 823 result = _cyhal_spi_int_frequency(obj, hz, &ovr_sample_val); in cyhal_spi_set_frequency()
|
D | cyhal_qspi.c | 728 …slt_t _cyhal_qspi_init_common(cyhal_qspi_t *obj, const cyhal_qspi_configurator_t *cfg, uint32_t hz) in _cyhal_qspi_init_common() argument 867 result = cyhal_qspi_set_frequency(obj, hz); in _cyhal_qspi_init_common() 935 …cyhal_qspi_t *obj, cyhal_gpio_t sclk, const cyhal_qspi_slave_pin_config_t *pin_set, uint32_t hz, u… in cyhal_qspi_init() argument 967 return _cyhal_qspi_init_common(obj, &cfg, hz); in cyhal_qspi_init() 1019 cy_rslt_t cyhal_qspi_set_frequency(cyhal_qspi_t *obj, uint32_t hz) in cyhal_qspi_set_frequency() argument 1022 CY_ASSERT(hz != 0); in cyhal_qspi_set_frequency() 1027 return _cyhal_utils_set_clock_frequency2(&(obj->clock), hz, &tolerance); in cyhal_qspi_set_frequency()
|
D | cyhal_timer.c | 198 cy_rslt_t cyhal_timer_set_frequency(cyhal_timer_t *obj, uint32_t hz) in cyhal_timer_set_frequency() argument 213 (CY_RSLT_SUCCESS == cyhal_clock_set_frequency(&obj->tcpwm.clock, hz, &tolerance)) && in cyhal_timer_set_frequency()
|
D | cyhal_sdhc.c | 2079 cy_rslt_t cyhal_sdhc_set_frequency(cyhal_sdhc_t *obj, uint32_t hz, bool negotiate) in cyhal_sdhc_set_frequency() argument 2087 if ((sdxx->emmc) && (_CYHAL_SDHC_EMMC_MAX_SUP_FREQ_HZ < hz)) in cyhal_sdhc_set_frequency() 2095 uint32_t actual_freq = hz; in cyhal_sdhc_set_frequency()
|
/hal_infineon-3.4.0/mtb-hal-cat1/COMPONENT_PSOC6HAL/include/ |
D | cyhal_utils_psoc.h | 182 cy_rslt_t _cyhal_utils_set_clock_frequency(cyhal_clock_t* clock, uint32_t hz, const cyhal_clock_tol… 218 cy_rslt_t _cyhal_utils_find_hf_source_n_divider(cyhal_clock_t *clock, uint32_t hz, 233 cy_rslt_t _cyhal_utils_set_clock_frequency2(cyhal_clock_t *clock, uint32_t hz, const cyhal_clock_to…
|
/hal_infineon-3.4.0/mtb-hal-cat1/include/ |
D | cyhal_qspi.h | 247 …cyhal_qspi_t *obj, cyhal_gpio_t sclk, const cyhal_qspi_slave_pin_config_t *pin_set, uint32_t hz, u… 278 cy_rslt_t cyhal_qspi_set_frequency(cyhal_qspi_t *obj, uint32_t hz);
|
D | cyhal_clock.h | 302 cy_rslt_t cyhal_clock_set_frequency(cyhal_clock_t *clock, uint32_t hz, const cyhal_clock_tolerance_…
|
D | cyhal_timer.h | 239 cy_rslt_t cyhal_timer_set_frequency(cyhal_timer_t *obj, uint32_t hz);
|
D | cyhal_spi.h | 265 cy_rslt_t cyhal_spi_set_frequency(cyhal_spi_t *obj, uint32_t hz);
|
D | cyhal_sdhc.h | 567 cy_rslt_t cyhal_sdhc_set_frequency(cyhal_sdhc_t *obj, uint32_t hz, bool negotiate);
|