Searched refs:cfgr0 (Results 1 – 1 of 1) sorted by relevance
66 uint32_t cfgr0 = regs->CFGR0; in clock_control_wch_rcc_get_rate() local70 if ((cfgr0 & RCC_HPRE_3) != 0) { in clock_control_wch_rcc_get_rate()73 ahbclk /= 2 << ((cfgr0 & (RCC_HPRE_0 | RCC_HPRE_1 | RCC_HPRE_2)) >> 4); in clock_control_wch_rcc_get_rate()76 ahbclk /= ((cfgr0 & (RCC_HPRE_0 | RCC_HPRE_1 | RCC_HPRE_2)) >> 4) + 1; in clock_control_wch_rcc_get_rate()