Searched refs:input_hz (Results 1 – 1 of 1) sorted by relevance
| /hal_infineon-latest/mtb-hal-cat1/source/ |
| D | cyhal_clock.c | 579 static cy_rslt_t _cyhal_clock_compute_div(uint64_t input_hz, uint32_t desired_hz, uint32_t divider_… in _cyhal_clock_compute_div() argument 582 *div = (input_hz + (desired_hz / 2)) / desired_hz; in _cyhal_clock_compute_div() 587 … ? (uint32_t)abs(_cyhal_utils_calculate_tolerance(tolerance->type, desired_hz, input_hz / *div)) in _cyhal_clock_compute_div() 1748 uint32_t input_hz = Cy_SysClk_ClkPathMuxGetFrequency(pll_idx); in _cyhal_clock_set_frequency_pll() local 1751 .inputFreq = input_hz, in _cyhal_clock_set_frequency_pll() 2268 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(0); in _cyhal_clock_set_frequency_fast() local 2269 rslt = _cyhal_clock_compute_div((uint64_t)input_hz, hz, 8, tolerance, &div); in _cyhal_clock_set_frequency_fast() 2271 uint32_t input_hz = Cy_SysClk_ClkHfGetFrequency(1); in _cyhal_clock_set_frequency_fast() local 2272 rslt = _cyhal_clock_compute_div(((uint64_t)input_hz) << 5, hz, 13, tolerance, &div); in _cyhal_clock_set_frequency_fast() 2336 uint32_t input_hz = Cy_SysClk_ClkMemGetFrequency(); in _cyhal_clock_set_frequency_slow() local [all …]
|