| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | clock_divider: use core::assert in const fn | Eric Seppanen | 2025-12-13 | 1 | -3/+3 |
| | | | | | defmt::assert gives a compile error in const context. | ||||
| * | improve pio clock divider math | Eric Seppanen | 2025-12-13 | 1 | -11/+32 |
| | | | | | | | | | | | | | | | 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. | ||||
| * | add unit test for calculate_pio_clock_divider | Eric Seppanen | 2025-12-13 | 1 | -1/+29 |
| | | | | | | The test will fail, because the current implementation doesn't calculate the fractional part. | ||||
| * | Add PIO clock divider utility and refactor related modules | 1-rafael-1 | 2025-05-03 | 1 | -0/+25 |
