67 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
8cf16a78d3 async/spi: replace the "give back the Bus" hack with a raw pointer. 2022-04-26 20:06:04 +02:00
Diego Barrios Romero
0e34ee940a Prepare e-h-async 0.1.0-alpha.0 2022-04-16 21:58:40 +02:00
Diego Barrios Romero
0a3a858069 Prepare 1.0.0-alpha.8 release 2022-04-14 21:56:21 +02:00
Dario Nieuwenhuis
bdc20d893b async/spi: add helper methods to SpiDevice.
It's not possible to add them as default methods to `SpiDevice` itself,
but it's possible to do via an extension trait!

With this, you can avoid interacting with the horrible async closure hack in most
cases. You can now do `my_device.write(&buf).await`, just like with bare buses.
2022-03-11 21:22:32 +01:00
bors[bot]
b5c29b3988 Merge #347
347: async: add SPI r=eldruin a=Dirbaio

This is an exact mirror of the blocking SPI trait (including the proposed changes in #351 ), except the following differences:

- `W: 'static` is required everywhere, otherwise complicated lifetime bounds are required in the future GATs.


Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-03-10 16:33:44 +00:00
Dario Nieuwenhuis
edae01ef7f async/digital: add blanket impl for &mut T 2022-03-10 17:28:08 +01:00
Dario Nieuwenhuis
62b177cd06 spi: Small doc fixes 2022-03-10 17:27:33 +01:00
Dario Nieuwenhuis
ad66fa9ca8 async: add SPI. 2022-03-10 17:27:33 +01:00
Dario Nieuwenhuis
6da2a76887 async: update to new location of where clause.
Latest nightly changed the location of the `where` clause on impls with GATs:
https://github.com/rust-lang/rust/issues/89122
2022-03-10 05:56:40 +01:00
Dario Nieuwenhuis
244d38324f async/i2c: fix lifetimes on Transaction. 2022-02-15 00:13:10 +01:00
Diego Barrios Romero
8edf25ae1a Prepare 1.0.0-alpha.7 release 2022-02-09 22:08:10 +01:00
Dario Nieuwenhuis
9886bff81e async: add digital::Wait. 2022-02-05 02:00:40 +01:00
Dario Nieuwenhuis
dc8bdf2615 async: add i2c 2022-01-12 13:00:26 +01:00
Dario Nieuwenhuis
7b911a6f5f async: add Delay 2022-01-11 23:41:08 +01:00
Dario Nieuwenhuis
f422a07b0b async: Add feature(generic_associated_types)], fix CI 2022-01-11 23:39:15 +01:00
Diego Barrios Romero
ba5b8304b9 Clarify development status 2022-01-11 21:17:30 +01:00
Diego Barrios Romero
d175998a10 Add embedded-hal-async crate in subdirectory 2021-12-21 22:43:45 +01:00