<feed xmlns='http://www.w3.org/2005/Atom'>
<title>embassy/embassy-rp/src/pio_programs/clock_divider.rs, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/'/>
<entry>
<title>clock_divider: use core::assert in const fn</title>
<updated>2025-12-13T23:18:39+00:00</updated>
<author>
<name>Eric Seppanen</name>
<email>eds@reric.net</email>
</author>
<published>2025-12-13T23:18:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=7227c7bde24b9ebd1e3fcc355f708690d1724469'/>
<id>7227c7bde24b9ebd1e3fcc355f708690d1724469</id>
<content type='text'>
defmt::assert gives a compile error in const context.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
defmt::assert gives a compile error in const context.
</pre>
</div>
</content>
</entry>
<entry>
<title>improve pio clock divider math</title>
<updated>2025-12-13T22:40:40+00:00</updated>
<author>
<name>Eric Seppanen</name>
<email>eds@reric.net</email>
</author>
<published>2025-12-13T22:16:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=a47f745c2504805feba646c6971ed35266782403'/>
<id>a47f745c2504805feba646c6971ed35266782403</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>add unit test for calculate_pio_clock_divider</title>
<updated>2025-12-13T22:40:40+00:00</updated>
<author>
<name>Eric Seppanen</name>
<email>eds@reric.net</email>
</author>
<published>2025-12-13T21:56:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=215804facc43623fd8bb9170c05032e7f8540025'/>
<id>215804facc43623fd8bb9170c05032e7f8540025</id>
<content type='text'>
The test will fail, because the current implementation doesn't calculate
the fractional part.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test will fail, because the current implementation doesn't calculate
the fractional part.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add PIO clock divider utility and refactor related modules</title>
<updated>2025-05-03T12:46:30+00:00</updated>
<author>
<name>1-rafael-1</name>
<email>rafael.koch@gmx.net</email>
</author>
<published>2025-05-03T12:46:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=3d9cac361ed6bd0cd00cab7bf924608c89de9108'/>
<id>3d9cac361ed6bd0cd00cab7bf924608c89de9108</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
