Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 12 of 12) sorted by relevance

/hal_infineon-3.4.0/mtb-hal-cat1/COMPONENT_PSOC6HAL/source/
Dcyhal_utils_psoc.c394 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, &divider)) 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 …]
Dcyhal_clock.c514 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 …]
Dcyhal_spi.c114 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()
Dcyhal_qspi.c728 …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()
Dcyhal_timer.c198 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()
Dcyhal_sdhc.c2079 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/
Dcyhal_utils_psoc.h182 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/
Dcyhal_qspi.h247 …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);
Dcyhal_clock.h302 cy_rslt_t cyhal_clock_set_frequency(cyhal_clock_t *clock, uint32_t hz, const cyhal_clock_tolerance_…
Dcyhal_timer.h239 cy_rslt_t cyhal_timer_set_frequency(cyhal_timer_t *obj, uint32_t hz);
Dcyhal_spi.h265 cy_rslt_t cyhal_spi_set_frequency(cyhal_spi_t *obj, uint32_t hz);
Dcyhal_sdhc.h567 cy_rslt_t cyhal_sdhc_set_frequency(cyhal_sdhc_t *obj, uint32_t hz, bool negotiate);