embassy/examples/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
..
.cargo Add env DEFMT_LOG=trace to all examples. 2022-06-18 01:59:12 +02:00
assets rp/examples: add spi_display example 2021-07-20 10:06:57 +02:00
src/bin Merge #984 #1006 2022-10-12 19:41:52 +00:00
build.rs Replace rustflags with build.rs extra-link-args. 2021-11-07 23:52:11 +01:00
Cargo.toml Merge #984 #1006 2022-10-12 19:41:52 +00:00
memory.x Move examples to a subdirectory 2021-06-02 01:32:19 +02:00