diff options
author | Paul Grayson <pdg@alum.mit.edu> | 2022-12-14 19:19:21 -0800 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-01-12 16:28:12 +1100 |
commit | f0f5c6568de8a194f4f77c19f4e2087b87d1ab7e (patch) | |
tree | d0e7750dc6d147c4aa0955ebfc16435ac3058f4d /docs/esp32/tutorial/intro.rst | |
parent | b5823604a005de9232b482ce8f820735e8f69106 (diff) |
rp2/machine_pwm: Fix overflows with freq > 268 MHz.
There were several places where 32-bit integer could overflow with
frequencies of 2^28 Hz or above (~268 MHz). This fixes those overflows and
also introduces rounding for more accurate duty_ns computations.
Signed-off-by: Paul Grayson <pdg@alum.mit.edu>
Diffstat (limited to 'docs/esp32/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions