<feed xmlns='http://www.w3.org/2005/Atom'>
<title>embassy/examples/rp/src/bin/adc.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>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>
<entry>
<title>ci: use beta, add secondary nightly ci.</title>
<updated>2023-12-21T14:03:57+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2023-12-21T13:57:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=8b36a32ed5d834b23e970d5b723dd7df1f1c94a2'/>
<id>8b36a32ed5d834b23e970d5b723dd7df1f1c94a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>time: Update examples, tests, and other code to use new Timer::after_x convenience methods</title>
<updated>2023-10-15T00:30:12+00:00</updated>
<author>
<name>Adam Greig</name>
<email>adam@adamgreig.com</email>
</author>
<published>2023-10-14T23:57:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=0621e957a0ddc7010d46b3ea3ddc8b9852bc8333'/>
<id>0621e957a0ddc7010d46b3ea3ddc8b9852bc8333</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rp: add single-channel dma from adc</title>
<updated>2023-08-02T15:04:32+00:00</updated>
<author>
<name>pennae</name>
<email>github@quasiparticle.net</email>
</author>
<published>2023-07-21T21:34:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=a6b8f3d99478266b4f110e9c150ce3add5c3ffc6'/>
<id>a6b8f3d99478266b4f110e9c150ce3add5c3ffc6</id>
<content type='text'>
with uniform treatment of adc inputs it's easy enough to add a new
sampling method. dma sampling only supports one channel at the moment,
though round-robin sampling would be a simple extension (probably a new
trait that's implemented for Channel and &amp;[Channel]). continuous dma as
proposed in #1608 also isn't done here, we'd expect that to be a
compound dma::Channel that internally splits a buffer in half and
dispatches callbacks or something like that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
with uniform treatment of adc inputs it's easy enough to add a new
sampling method. dma sampling only supports one channel at the moment,
though round-robin sampling would be a simple extension (probably a new
trait that's implemented for Channel and &amp;[Channel]). continuous dma as
proposed in #1608 also isn't done here, we'd expect that to be a
compound dma::Channel that internally splits a buffer in half and
dispatches callbacks or something like that.
</pre>
</div>
</content>
</entry>
<entry>
<title>rp: generalize adc inputs from pins to channels</title>
<updated>2023-08-01T16:31:28+00:00</updated>
<author>
<name>pennae</name>
<email>github@quasiparticle.net</email>
</author>
<published>2023-07-21T19:31:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=b166ed6b78db0737005a65c1e444ce7563de7da3'/>
<id>b166ed6b78db0737005a65c1e444ce7563de7da3</id>
<content type='text'>
this lets us treat pins and the temperature sensor uniformly using the
same interface. uniformity in turn lets us add more adc features without
combinatorial explosion of methods and types needed to handle them all.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this lets us treat pins and the temperature sensor uniformly using the
same interface. uniformity in turn lets us add more adc features without
combinatorial explosion of methods and types needed to handle them all.
</pre>
</div>
</content>
</entry>
<entry>
<title>Round temp to make more sense.</title>
<updated>2023-07-13T20:47:03+00:00</updated>
<author>
<name>Henrik Berg</name>
<email>henrik1965@gmail.com</email>
</author>
<published>2023-07-13T20:47:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=56ca1794759a21d9d5397e5bd4aa8226f6ef9385'/>
<id>56ca1794759a21d9d5397e5bd4aa8226f6ef9385</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add descriptions to all RP2040 examples. Some need hardware that was not specified.</title>
<updated>2023-07-13T09:16:11+00:00</updated>
<author>
<name>Henrik Berg</name>
<email>henrik1965@gmail.com</email>
</author>
<published>2023-07-13T09:16:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=588c0479f5dacd21e8654463eb3ca3d847d5dcd9'/>
<id>588c0479f5dacd21e8654463eb3ca3d847d5dcd9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rp/adc: rewrite the module</title>
<updated>2023-07-07T15:46:35+00:00</updated>
<author>
<name>pennae</name>
<email>github@quasiparticle.net</email>
</author>
<published>2023-07-05T18:05:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=972cdd4265b24efb101c6b9df373466fcbccac5d'/>
<id>972cdd4265b24efb101c6b9df373466fcbccac5d</id>
<content type='text'>
- don't require an irq binding for blocking-only adc
- abstract adc pins into an AnyPin like interface, erasing the actual
  peripheral type at runtime.
- add pull-up/pull-down functions for adc pins
- add a test (mostly a copy of the example, to be honest)
- configure adc pads according to datasheet
- report conversion errors (although they seem exceedingly rare?)
- drop embedded-hal interfaces. embedded-hal channels can do neither
  AnyPin nor pullup/pulldown without encoding both into the type
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- don't require an irq binding for blocking-only adc
- abstract adc pins into an AnyPin like interface, erasing the actual
  peripheral type at runtime.
- add pull-up/pull-down functions for adc pins
- add a test (mostly a copy of the example, to be honest)
- configure adc pads according to datasheet
- report conversion errors (although they seem exceedingly rare?)
- drop embedded-hal interfaces. embedded-hal channels can do neither
  AnyPin nor pullup/pulldown without encoding both into the type
</pre>
</div>
</content>
</entry>
<entry>
<title>rp: remove take!, add bind_interrupts!</title>
<updated>2023-05-15T13:24:56+00:00</updated>
<author>
<name>pennae</name>
<email>github@quasiparticle.net</email>
</author>
<published>2023-05-15T13:21:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=14a5d03af2a74eccaa9930bdf81eef43791a4b33'/>
<id>14a5d03af2a74eccaa9930bdf81eef43791a4b33</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cargo fmt</title>
<updated>2022-12-20T06:59:49+00:00</updated>
<author>
<name>Aaron Tsui</name>
<email>aaron.tsui@outlook.com</email>
</author>
<published>2022-12-20T06:59:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=5ae91ed3b64a086b15a949477a5762a3876307c5'/>
<id>5ae91ed3b64a086b15a949477a5762a3876307c5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
