Searched refs:tim_clk (Results 1 – 3 of 3) sorted by relevance
374 static int counter_stm32_get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk) in counter_stm32_get_tim_clk() argument437 *tim_clk = clocks.HCLK_Frequency; in counter_stm32_get_tim_clk()439 *tim_clk = bus_clk * 2u; in counter_stm32_get_tim_clk()447 *tim_clk = clocks.HCLK_Frequency; in counter_stm32_get_tim_clk()449 *tim_clk = bus_clk * 4u; in counter_stm32_get_tim_clk()460 *tim_clk = bus_clk; in counter_stm32_get_tim_clk()462 *tim_clk = bus_clk * 2u; in counter_stm32_get_tim_clk()475 uint32_t tim_clk; in counter_stm32_init_timer() local485 r = counter_stm32_get_tim_clk(&cfg->pclken, &tim_clk); in counter_stm32_init_timer()490 data->freq = tim_clk / (cfg->prescaler + 1U); in counter_stm32_init_timer()
27 uint32_t tim_clk; member141 *cycles = (uint64_t)(data->tim_clk / (config->prescaler + 1U)); in pwm_gd32_get_cycles_per_sec()171 &data->tim_clk); in pwm_gd32_init()
80 uint32_t tim_clk; member226 static int get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk) in get_tim_clk() argument286 *tim_clk = clocks.HCLK_Frequency; in get_tim_clk()288 *tim_clk = bus_clk * 2u; in get_tim_clk()296 *tim_clk = clocks.HCLK_Frequency; in get_tim_clk()298 *tim_clk = bus_clk * 4u; in get_tim_clk()309 *tim_clk = bus_clk; in get_tim_clk()311 *tim_clk = bus_clk * 2u; in get_tim_clk()765 *cycles = (uint64_t)(data->tim_clk / (cfg->prescaler + 1)); in pwm_stm32_get_cycles_per_sec()803 r = get_tim_clk(&cfg->pclken, &data->tim_clk); in pwm_stm32_init()