Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/counter/
Dcounter_ll_stm32_timer.c372 uint32_t bus_clk, apb_psc; in counter_stm32_get_tim_clk() local
388 apb_psc = 1; in counter_stm32_get_tim_clk()
391 apb_psc = STM32_D2PPRE1; in counter_stm32_get_tim_clk()
393 apb_psc = STM32_D2PPRE2; in counter_stm32_get_tim_clk()
398 apb_psc = (uint32_t)(READ_BIT(RCC->APB1DIVR, RCC_APB1DIVR_APB1DIV)); in counter_stm32_get_tim_clk()
400 apb_psc = STM32_APB1_PRESCALER; in counter_stm32_get_tim_clk()
406 apb_psc = (uint32_t)(READ_BIT(RCC->APB2DIVR, RCC_APB2DIVR_APB2DIV)); in counter_stm32_get_tim_clk()
408 apb_psc = STM32_APB2_PRESCALER; in counter_stm32_get_tim_clk()
430 if (apb_psc <= 2u) { in counter_stm32_get_tim_clk()
440 if (apb_psc <= 4u) { in counter_stm32_get_tim_clk()
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_stm32.c227 uint32_t bus_clk, apb_psc; in get_tim_clk() local
239 apb_psc = 1; in get_tim_clk()
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()
[all …]