aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorEric Seppanen <[email protected]>2025-12-13 14:16:02 -0800
committerEric Seppanen <[email protected]>2025-12-13 14:40:40 -0800
commita47f745c2504805feba646c6971ed35266782403 (patch)
treea1702d15e8cbeaf3374ad020a8a20e8b8f443f26 /release
parent215804facc43623fd8bb9170c05032e7f8540025 (diff)
improve pio clock divider math
Ensure that the fractional part of the clock divider is accurately calculated. This does additional u32 division/mod operations, which I think is better than using u64 for its extra precision. Also: - Add additional asserts to catch out-of-bounds results. - Make the version that accepts the system clock as a parameter const and public, so if anyone wants to hardcode the system frequency they can avoid any runtime computation. - Remove the `inline` attributes because the function has grown quite a bit.
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions