<feed xmlns='http://www.w3.org/2005/Atom'>
<title>embassy/embassy-imxrt/src, 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>[iMXRT] dma: fix transfer count computation</title>
<updated>2025-12-16T23:04:15+00:00</updated>
<author>
<name>Felipe Balbi</name>
<email>febalbi@microsoft.com</email>
</author>
<published>2025-12-16T19:28:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=772c9f951b5ee292089670d9b489314d75f8a92a'/>
<id>772c9f951b5ee292089670d9b489314d75f8a92a</id>
<content type='text'>
count should be defined as the integer div_round_up of buffer length
and word size, otherwise transferring small buffers will cause a panic
due to underflow:

if we let from = [0u32; 1];

then calling dma::write() will result in:

let count = ((1 / 4 as usize) - 1)
          = 0 - 1 // underflow

Rounding up results in 1 - 1 as expected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
count should be defined as the integer div_round_up of buffer length
and word size, otherwise transferring small buffers will cause a panic
due to underflow:

if we let from = [0u32; 1];

then calling dma::write() will result in:

let count = ((1 / 4 as usize) - 1)
          = 0 - 1 // underflow

Rounding up results in 1 - 1 as expected.
</pre>
</div>
</content>
</entry>
<entry>
<title>[iMXRT] dma: define MAX_CHUNK_SIZE constant</title>
<updated>2025-12-16T19:33:30+00:00</updated>
<author>
<name>Felipe Balbi</name>
<email>febalbi@microsoft.com</email>
</author>
<published>2025-12-16T19:27:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=2102dba83b3254b77c12a23fd17853cbf985233f'/>
<id>2102dba83b3254b77c12a23fd17853cbf985233f</id>
<content type='text'>
Instead of adding magic constants all over the place, let's just
define DMA MAX_CHUNK_SIZE in a single constant that be referenced by
the various users.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of adding magic constants all over the place, let's just
define DMA MAX_CHUNK_SIZE in a single constant that be referenced by
the various users.
</pre>
</div>
</content>
</entry>
<entry>
<title>[iMXRT] Add spi driver</title>
<updated>2025-12-12T00:27:09+00:00</updated>
<author>
<name>Felipe Balbi</name>
<email>febalbi@microsoft.com</email>
</author>
<published>2025-12-11T23:56:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=b28b61dc4aeb772502c61e4b0d9091569fac4a40'/>
<id>b28b61dc4aeb772502c61e4b0d9091569fac4a40</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rustfmt for edition 2024.</title>
<updated>2025-10-06T21:19:53+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2025-10-06T20:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=8730a013c395cf0bf4c2fa8eeb7f138288103039'/>
<id>8730a013c395cf0bf4c2fa8eeb7f138288103039</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Edition 2024.</title>
<updated>2025-10-06T21:19:53+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2025-10-06T20:55:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=abc8e450f936567ad42cb34b5d2a7941b206aa5d'/>
<id>abc8e450f936567ad42cb34b5d2a7941b206aa5d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `unsafe` block in IRQ handlers</title>
<updated>2025-07-20T19:25:26+00:00</updated>
<author>
<name>clubby789</name>
<email>jamie@hill-daniel.co.uk</email>
</author>
<published>2025-07-20T17:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=2be8be074764f292822ddf022cc81a5d441ad28d'/>
<id>2be8be074764f292822ddf022cc81a5d441ad28d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>timer: ostimer: wait for match write ready</title>
<updated>2025-05-21T15:11:18+00:00</updated>
<author>
<name>Felipe Balbi</name>
<email>febalbi@microsoft.com</email>
</author>
<published>2025-05-20T15:49:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=7a600fe9256a4c7c25501320da1de1fce8e1b39e'/>
<id>7a600fe9256a4c7c25501320da1de1fce8e1b39e</id>
<content type='text'>
Before writing to MATCH_L/MATCH_H registers, wait for permission to do
so by pollinmg MATCH_WR_RDY bit in CTRL register.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before writing to MATCH_L/MATCH_H registers, wait for permission to do
so by pollinmg MATCH_WR_RDY bit in CTRL register.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add rand-core v0.9 support.</title>
<updated>2025-05-18T18:35:36+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2025-05-18T18:32:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=e4fc48764491f8981e4a145a72e9b6e72df8c546'/>
<id>e4fc48764491f8981e4a145a72e9b6e72df8c546</id>
<content type='text'>
Co-Authored-By: Aurélien Jacobs &lt;aurel@gnuage.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-Authored-By: Aurélien Jacobs &lt;aurel@gnuage.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4206 from rursprung/add-possibility-to-document-bind_interrupts-structs</title>
<updated>2025-05-15T16:59:28+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2025-05-15T16:59:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=f5de5bd4fd59ec4f30e8ed1c2faa1e1e516810c0'/>
<id>f5de5bd4fd59ec4f30e8ed1c2faa1e1e516810c0</id>
<content type='text'>
add the possibility to document `bind_interrupts` `struct`s
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add the possibility to document `bind_interrupts` `struct`s
</pre>
</div>
</content>
</entry>
<entry>
<title>add the possibility to document `bind_interrupts` `struct`s</title>
<updated>2025-05-15T16:27:40+00:00</updated>
<author>
<name>Ralph Ursprung</name>
<email>ralph.ursprung@gmail.com</email>
</author>
<published>2025-05-15T15:53:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=117eb45fa0829239da9152b9cf54c3cf706dc76d'/>
<id>117eb45fa0829239da9152b9cf54c3cf706dc76d</id>
<content type='text'>
the `bind_interrupts` macro creates a `struct` for the interrupts. it
was so far not possible to document those (except for STM32) and there
was no generic documentation being generated/added either, thus the
`missing_docs` lint was triggered for consumers which enabled it.

with this change it is now possible to manually add a comment on the
`struct` being defined in the macro invocation.

to show that this works one RP example has been modified accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the `bind_interrupts` macro creates a `struct` for the interrupts. it
was so far not possible to document those (except for STM32) and there
was no generic documentation being generated/added either, thus the
`missing_docs` lint was triggered for consumers which enabled it.

with this change it is now possible to manually add a comment on the
`struct` being defined in the macro invocation.

to show that this works one RP example has been modified accordingly.
</pre>
</div>
</content>
</entry>
</feed>
