Searched refs:PERI_DIVIDERS (Results 1 – 2 of 2) sorted by relevance
142 static const cyhal_clock_block_t PERI_DIVIDERS[] = in _cyhal_utils_allocate_peri() local156 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()
422 const cyhal_clock_block_t PERI_DIVIDERS[] = in _cyhal_scb_configure_peri_clock() local441 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()