mirror of
https://github.com/micropython/micropython.git
synced 2026-01-26 22:00:23 +01:00
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>