Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_ll_stm32_timer.c378 uint32_t bus_clk, apb_psc; in counter_stm32_get_tim_clk() local
394 apb_psc = STM32_D2PPRE1; in counter_stm32_get_tim_clk()
396 apb_psc = STM32_D2PPRE2; in counter_stm32_get_tim_clk()
401 apb_psc = (uint32_t)(READ_BIT(RCC->APB1DIVR, RCC_APB1DIVR_APB1DIV)); in counter_stm32_get_tim_clk()
403 apb_psc = STM32_APB1_PRESCALER; in counter_stm32_get_tim_clk()
409 apb_psc = (uint32_t)(READ_BIT(RCC->APB2DIVR, RCC_APB2DIVR_APB2DIV)); in counter_stm32_get_tim_clk()
411 apb_psc = STM32_APB2_PRESCALER; in counter_stm32_get_tim_clk()
433 if (apb_psc <= 2u) { in counter_stm32_get_tim_clk()
443 if (apb_psc <= 4u) { in counter_stm32_get_tim_clk()
459 if (apb_psc == 1u) { in counter_stm32_get_tim_clk()
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_stm32.c230 uint32_t bus_clk, apb_psc; in get_tim_clk() local
242 apb_psc = STM32_D2PPRE1; in get_tim_clk()
244 apb_psc = STM32_D2PPRE2; in get_tim_clk()
249 apb_psc = (uint32_t)(READ_BIT(RCC->APB1DIVR, RCC_APB1DIVR_APB1DIV)); in get_tim_clk()
251 apb_psc = STM32_APB1_PRESCALER; in get_tim_clk()
258 apb_psc = (uint32_t)(READ_BIT(RCC->APB2DIVR, RCC_APB2DIVR_APB2DIV)); in get_tim_clk()
260 apb_psc = STM32_APB2_PRESCALER; in get_tim_clk()
282 if (apb_psc <= 2u) { in get_tim_clk()
292 if (apb_psc <= 4u) { in get_tim_clk()
308 if (apb_psc == 1u) { in get_tim_clk()