Home
last modified time | relevance | path

Searched refs:PERI_DIVIDERS (Results 1 – 2 of 2) sorted by relevance

/hal_infineon-3.7.0/mtb-hal-cat1/source/
Dcyhal_utils_impl.c142 static const cyhal_clock_block_t PERI_DIVIDERS[] = in _cyhal_utils_allocate_peri() local
156 for(size_t i = 0; i < sizeof(PERI_DIVIDERS) / sizeof(PERI_DIVIDERS[0]); ++i) in _cyhal_utils_allocate_peri()
158 if(PERI_DIVIDERS[i] == div) in _cyhal_utils_allocate_peri()
167 result = _cyhal_clock_allocate_peri(clock, PERI_DIVIDERS[i]); in _cyhal_utils_allocate_peri()
170 …t adjusted_div = (cyhal_clock_block_t)_CYHAL_PERIPHERAL_GROUP_ADJUST(peri_group, PERI_DIVIDERS[i]); in _cyhal_utils_allocate_peri()
174 …usted_div = (cyhal_clock_block_t)_CYHAL_PERIPHERAL_GROUP_ADJUST(instance, group, PERI_DIVIDERS[i]); in _cyhal_utils_allocate_peri()
180 result = cyhal_clock_allocate(clock, PERI_DIVIDERS[i]); in _cyhal_utils_allocate_peri()
Dcyhal_scb_common.c422 const cyhal_clock_block_t PERI_DIVIDERS[] = in _cyhal_scb_configure_peri_clock() local
441 for (uint8_t i = 0; i < sizeof(PERI_DIVIDERS)/sizeof(cyhal_clock_block_t); i++) in _cyhal_scb_configure_peri_clock()
443 if (PERI_DIVIDERS[i] < clk_type) in _cyhal_scb_configure_peri_clock()
447 else if (PERI_DIVIDERS[i] > clk_type) in _cyhal_scb_configure_peri_clock()
449 result = _cyhal_utils_allocate_clock(clock, resource, PERI_DIVIDERS[i], true); in _cyhal_scb_configure_peri_clock()