Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_ll_stm32_timer.c374 static int counter_stm32_get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk) in counter_stm32_get_tim_clk() argument
437 *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() local
485 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()
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_gd32.c27 uint32_t tim_clk; member
141 *cycles = (uint64_t)(data->tim_clk / (config->prescaler + 1U)); in pwm_gd32_get_cycles_per_sec()
171 &data->tim_clk); in pwm_gd32_init()
Dpwm_stm32.c80 uint32_t tim_clk; member
226 static int get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk) in get_tim_clk() argument
286 *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()