Home
last modified time | relevance | path

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

/hal_infineon-3.6.0/XMCLib/drivers/src/
Dxmc1_scu.c253 static void XMC_SCU_CLOCK_lFrequencyUpScaling(uint32_t curr_idiv, uint32_t idiv);
256 static void XMC_SCU_CLOCK_lFrequencyDownScaling(uint32_t curr_idiv, uint32_t idiv);
708 uint32_t curr_idiv; in XMC_SCU_CLOCK_ScaleMCLKFrequency() local
713 curr_idiv = (SCU_CLK->CLKCR & SCU_CLK_CLKCR_IDIV_Msk) >> SCU_CLK_CLKCR_IDIV_Pos; in XMC_SCU_CLOCK_ScaleMCLKFrequency()
733 if(curr_idiv <= idiv) in XMC_SCU_CLOCK_ScaleMCLKFrequency()
736 XMC_SCU_CLOCK_lFrequencyDownScaling(curr_idiv, idiv); in XMC_SCU_CLOCK_ScaleMCLKFrequency()
741 XMC_SCU_CLOCK_lFrequencyUpScaling(curr_idiv, idiv); in XMC_SCU_CLOCK_ScaleMCLKFrequency()
759 static void XMC_SCU_CLOCK_lFrequencyUpScaling(uint32_t curr_idiv, uint32_t target_idiv) in XMC_SCU_CLOCK_lFrequencyUpScaling() argument
761 while (curr_idiv > (target_idiv * 4UL)) in XMC_SCU_CLOCK_lFrequencyUpScaling()
763 curr_idiv = (uint32_t)(curr_idiv >> 2UL); /* Divide by 4. */ in XMC_SCU_CLOCK_lFrequencyUpScaling()
[all …]