embassy/embassy-rp
bors[bot] b7d0944265
Merge #984 #1006
984: rp pico async i2c implementation r=Dirbaio a=jsgf

This implements an interrupt-driven async i2c master. It is based on https://github.com/embassy-rs/embassy/pull/914, a bit of https://github.com/embassy-rs/embassy/pull/978 and `@ithinuel's` https://github.com/ithinuel/rp2040-async-i2c.git

This is still work-in-progress, and is currently untested.

1006: Removes some of the code duplication for UarteWithIdle r=Dirbaio a=huntc

This PR removes some of the code duplications for `UarteWithIdle` at the slight expense of requiring a split when using idle processing. As the nRF example illustrates though given the LoC removed, this expense seems worth the benefit in terms of maintenance, and the avoidance of copying over methods. My main motivation for this PR was actually due to the `event_endtx` method not having been copied across to the idle-related code.

Tested the uart_idle example on my nRF52840-dk, and from within my app. Both appear to work fine.

Co-authored-by: Jeremy Fitzhardinge <jeremy@goop.org>
Co-authored-by: huntc <huntchr@gmail.com>
2022-10-12 19:41:52 +00:00
..
src Merge #984 #1006 2022-10-12 19:41:52 +00:00
build.rs Fix all warnings on embassy-rp and embassy-rp-examples and 2021-05-20 08:32:26 +10:00
Cargo.toml all Cargo.toml: Add license to all crate Cargo.toml files 2022-10-07 12:41:56 +02:00
funcsel.txt rp: add initial version 2021-03-29 21:35:25 +02:00
link-rp.x.in rp: add precompiled boot2 to avoid depending on gcc 2021-03-29 22:28:36 +02:00