Searched refs:ahbclk (Results 1 – 1 of 1) sorted by relevance
68 uint32_t ahbclk = sysclk; in clock_control_wch_rcc_get_rate() local73 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()83 *rate = ahbclk; in clock_control_wch_rcc_get_rate()