stm32_timer_set_prescaler(9)
β¨ NAME β¨
Okay so bestie, welcome to the Kernel API Manual page for stm32_timer_set_prescaler(9) β this one is all about computing and setting the prescaler register. π
stm32_timer_set_prescaler β Compute and set the prescaler register
πΈ SYNOPSIS πΈ
void stm32_timer_set_prescaler (struct timer_of *to );
π ARGUMENTS π
toβ a pointer to atimer-ofstructure π«Ά
π¦ DESCRIPTION π¦
So here's the vibe: depending on the timer width, this function computes the prescaler so it always targets a 10MHz timer rate for 16 bits. β¨
For 32-bit timers, they're considered precise and long enough, so they don't use the prescaler at all β no cap, they just don't need it. π
π SEE ALSO π
- Kernel file
./drivers/clocksource/timer-stm32.c stm32_timer_of_bits_set(9),stm32_timer_of_bits_get(9),stm32_timer_start(9),stm32_timer_set_width(9)
That's the tea from the Kernel API Manual, sourced from ./drivers/clocksource, dated October 2026 β stm32_timer_set_prescaler(9), out. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms