diff options
| author | wdfk-prog <[email protected]> | 2026-11-25 15:08:43 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-11-25 18:09:55 +0800 |
| commit | df2626462c3afdccf272d6c73dad27195f070a47 (patch) | |
| tree | bc699b85237c188b86f303ba180aa37daee2bbe5 /libcpu/mips | |
| parent | 26d148c3c71f9101fb285247ce8ccb0ae3efddc1 (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/mips')
0 files changed, 0 insertions, 0 deletions
