summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorwdfk-prog <[email protected]>2026-11-25 15:08:43 +0800
committerRbb666 <[email protected]>2026-11-25 18:09:55 +0800
commitdf2626462c3afdccf272d6c73dad27195f070a47 (patch)
treebc699b85237c188b86f303ba180aa37daee2bbe5 /libcpu
parent26d148c3c71f9101fb285247ce8ccb0ae3efddc1 (diff)
fix[stm32][pwm]: avoid unnecessary PWM prescaling
- Use ceiling division to calculate the minimum prescaler without an extra division factor at exact multiples of MAX_PERIOD. - Preserve the zero-period handling and the counter limit required for 100% duty cycle.
Diffstat (limited to 'libcpu')
0 files changed, 0 insertions, 0 deletions