46 Commits

Author SHA1 Message Date
Preston Peranich
6f7a48efcd fix: remove static lifetime requirements from i2c shared bus. 2025-07-31 17:53:39 -04:00
Shaw Drastin
dc2ce92e32 Add proper error handling if CS is not dropped 2025-02-07 10:39:08 +08:00
Shaw Drastin
188828775e SpiDevice cancel safety: always set CS pin to high on drop
If a transfer is dropped, the CS will stay in a low state, which
seems to be unsafe.
2025-02-04 10:55:47 +08:00
Dario Nieuwenhuis
78cdebbc95 embassy-embedded-hal: add support for all word sizes to async shared spi. 2024-05-20 10:56:43 +02:00
Dario Nieuwenhuis
31887b47bc embassy-embedded-hal: remove Word generic for blocking SpiDeviceWithConfig. 2024-05-20 10:56:43 +02:00
Ragarnoy
d64f46ff9e PR remarks 2024-05-20 10:56:43 +02:00
Ragarnoy
44cb4159a6 rustmft 2024-05-20 10:56:43 +02:00
ragarnoy
4dbec3402e Remove old embedded-hal trait implementations 2024-05-20 10:56:43 +02:00
Ragarnoy
02ee59fa1e Add Copy and 'static constraint to Word type in SPI structs 2024-05-20 10:56:43 +02:00
Ragarnoy
6df737a48c rustfmt 2024-05-20 10:56:43 +02:00
Ragarnoy
c5a183fa82 Improve flexibility by introducing SPI word size as a generic parameter 2024-05-20 10:56:43 +02:00
Caleb Jamison
8f1bed3d95 Allow changing Spi/I2cDeviceWithConfig's config at runtime 2024-03-23 12:21:13 -04:00
Sebastian Goll
d65724207d Forward transaction() from blocking I2cDevice to underlying bus 2024-03-20 01:12:04 +01:00
Dario Nieuwenhuis
c6989dfbca Remove nightly and unstable-traits features in preparation for 1.75. 2023-11-29 17:26:33 +01:00
Dario Nieuwenhuis
4634316749 Update embedded-(hal,io,nal). 2023-11-29 17:01:36 +01:00
Torin Cooper-Bennun
2c9f4bce01 shared_bus/blocking/spi: fix build and behaviour when "time" disabled
new behaviour: check for DelayUs presence in operations instead of
shortcircuiting
2023-11-27 23:05:19 +00:00
Dario Nieuwenhuis
5528c33649 embassy-embedded-hal: don't use feature(try_blocks). 2023-11-24 18:44:55 +01:00
Adam Greig
0621e957a0
time: Update examples, tests, and other code to use new Timer::after_x convenience methods 2023-10-15 01:30:12 +01:00
xoviat
5ad34404af eh: update set_config and add get_config 2023-10-01 09:37:20 -05:00
Dario Nieuwenhuis
a101d9078d update embedded-hal crates. 2023-07-04 19:59:36 +02:00
Dario Nieuwenhuis
46961cfdf7 Fix tests. 2023-05-29 19:46:28 +02:00
Caleb Jamison
3ad52f837d Remove debug 2023-05-22 21:31:00 -04:00
Caleb Jamison
49eaf000b8 Add i2c transaction 2023-05-22 21:26:03 -04:00
Dario Nieuwenhuis
be37eee13d Update embedded-hal crates. 2023-04-06 22:41:50 +02:00
Dario Nieuwenhuis
1e2fb0459d Switch to async-fn-in-trait 2022-11-25 21:02:06 +01:00
Ulf Lilleengen
72c2e985bb Update embedded-hal versions and explicitly pin 2022-09-29 11:27:46 +02:00
Dario Nieuwenhuis
21072bee48 split embassy-util into embassy-futures, embassy-sync. 2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
478f472784 Remove Forever, switch to static_cell. 2022-08-22 16:11:40 +02:00
Dario Nieuwenhuis
a0f1b0ee01 Split embassy crate into embassy-executor, embassy-util. 2022-07-29 23:40:36 +02:00
Matous Hybl
c38755c5b7 Add defmt support to embassy-embedded-hal errors 2022-07-24 22:10:50 +02:00
Dario Nieuwenhuis
d2f4a9bf8d embassy-embedded-hal: docs 2022-07-19 07:58:29 +02:00
Dario Nieuwenhuis
a3a40bad6c Rename XXBusDevice to XXDevice. 2022-07-18 20:02:05 +02:00
Henrik Alsér
c9ceec8797 Cleanup 2022-07-10 00:49:46 +02:00
Henrik Alsér
ef24faf2df Add asynch mod to shared_bus 2022-07-10 00:05:57 +02:00
Henrik Alsér
baae64d911 Add embassy-embedded-hal nightly feature 2022-07-09 23:41:02 +02:00
Henrik Alsér
d637510b44 Associated type 2022-07-09 00:00:55 +02:00
Henrik Alsér
15384d27bb Merge upstream 2022-07-08 23:42:19 +02:00
Henrik Alsér
b72ba0a6c4 Merge upstream 2022-07-08 23:37:35 +02:00
Henrik Alsér
f30ff9cadc Shared buses with SetConfig 2022-07-08 15:47:47 +02:00
Henrik Alsér
4b4fe7245b Add EH 0.2 impls + example docs 2022-07-06 23:02:16 +02:00
Dario Nieuwenhuis
455374b7f9 spi shared bus: assert/deassert CS inside the lock. 2022-07-06 16:57:29 +02:00
Henrik Alsér
ba2412ff7e Mutex for SPI 2022-07-06 03:47:55 +02:00
Henrik Alsér
d3d82ad87d Mutex 2022-07-06 03:31:21 +02:00
Henrik Alsér
264b32d71b Add blocking shared bus for i2c and SPI 2022-07-06 02:35:46 +02:00
Dario Nieuwenhuis
a8703b7598 Run rustfmt. 2022-06-12 22:22:31 +02:00
Henrik Alsér
e10fc2bada
Async shared bus for SPI & I2C + rename embassy-traits (#769)
* Rename embassy-traits to embassy-embedded-hal

* Rename embassy-traits to embassy-embedded-hal

* Add shared bus for SPI and I2C

* rustfmt

* EHA alpha 1

* Rename embedded-traits in examples

* rustfmt

* rustfmt

Co-authored-by: Henrik Alsér <henrik@mindbite.se>
2022-05-26 18:54:58 +02:00