Commit Graph

90 Commits

Author SHA1 Message Date
Ulf Lilleengen
cf0d227cca Prepare for embassy-sync 0.6.0 release 2024-05-29 12:09:55 +02: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
Haobo Gu
47b9758151 feat: impl MultiwriteNorFlash for BlockingAsync
Signed-off-by: Haobo Gu <haobogu@outlook.com>
2024-03-15 21:38:32 +08:00
Dario Nieuwenhuis
6a1c415a4c Complete cargo.tomls more. 2024-01-12 00:32:47 +01:00
Dario Nieuwenhuis
5304994363 Add docs.rs metadata to all crates. 2024-01-11 23:17:02 +01:00
Dario Nieuwenhuis
22197320ff bump embassy-time 0.3, embassy-executor 0.5, embassy-net 0.4. 2024-01-11 23:01:24 +01:00
Dario Nieuwenhuis
cf7da1c2bb embassy-embedded-hal: add README. 2024-01-11 21:05:09 +01:00
Dario Nieuwenhuis
fe0b21e21e Remove nightly autodetects. 2024-01-10 18:32:14 +01:00
Dario Nieuwenhuis
c9ac39df94 Update embedded-hal to v1.0 2024-01-09 23:37:14 +01:00
Dario Nieuwenhuis
d81395fab3 Update embedded-hal to 1.0.0-rc.3 2023-12-14 16:19:32 +01:00
Scott Mabin
334900752a update release version in examples and other crates 2023-12-04 13:15:10 +00:00
Dario Nieuwenhuis
03325ea81b update embedded-storage{,-async}, remove patch. 2023-12-04 13:48:36 +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
Dániel Buga
d941882066 Prepare embassy-net 0.2.1 and embassy-sync 0.4.0 2023-10-31 09:33:27 +01:00
Dániel Buga
ad07ea0290 Re-add impl_trait_projections 2023-10-30 19:10:45 +01:00
Dario Nieuwenhuis
213b4c9dca time: add links key, release v0.1.5. 2023-10-16 20:11:35 +02: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
Dániel Buga
02d2c06b23 Release embassy-time 0.1.4 2023-10-12 18:14:33 +02:00
James Munns
930b8f3495 Add some uncontroversial derives to Error types 2023-10-06 17:45:35 +02:00
Dario Nieuwenhuis
eb12114345 Remove impl_trait_projections. 2023-10-02 14:00:49 +02:00
xoviat
5ad34404af eh: update set_config and add get_config 2023-10-01 09:37:20 -05:00
Ulf Lilleengen
1b20ba27b1 feat: bump embassy-sync version to 0.3.0
Update changelog in preparation for release
2023-09-14 18:26:00 +02:00
Jesse Braham
1f63bf4153 Release embassy-time v0.1.3 2023-08-28 08:00:18 -07:00
Dario Nieuwenhuis
f26dd54f63
Update embedded-hal to 1.0.0-rc.1 (#1783) 2023-08-16 00:40:56 +02:00
Dario Nieuwenhuis
d137286981 Release embassy-time v0.1.2 2023-07-06 01:29:44 +02:00
Dario Nieuwenhuis
a101d9078d update embedded-hal crates. 2023-07-04 19:59:36 +02:00
Rasmus Melchior Jacobsen
c2aca45b8d Add offset and size accessors to Partition 2023-05-30 13:57:40 +02:00
Dario Nieuwenhuis
46961cfdf7 Fix tests. 2023-05-29 19:46:28 +02:00
Rasmus Melchior Jacobsen
85ce44f78e Use RefCell in blocking mutex 2023-05-27 17:02:54 +02:00
Rasmus Melchior Jacobsen
6d8f409018 Add BlockingPartition 2023-05-27 10:29:21 +02:00
Rasmus Melchior Jacobsen
e495473fc3 Remove runtime offset and size assertions 2023-05-26 22:07:23 +02:00
Rasmus Melchior Jacobsen
62e799da09 Create flash partition for shared flash access 2023-05-26 21:40:12 +02:00
bors[bot]
5f10eadb8d
Merge #1475 #1478 #1482
1475: Add YieldingAsync adapter r=Dirbaio a=rmja

This PR calls `yield_now()` for long blocking `NorFlash` read and erase operations.
The motivation for this change is to allow for other tasks on the same executor to get something done between these long running operations, for example a task that feeds a watchdog. This will allow the watchdog to have a timer relative to e.g. one sector erase, instead of all sector erase.

1478: stm32: Minor fixes in flash regions for F4 dual bank layout r=Dirbaio a=rmja

This PR has the following fixes:
* Ensure that `FlashRegion` instances can only be created within the embassy-stm32 crate.
* Remove `Drop` trait for `AltFlashLayout`, as it is hard to use, as one cannot take the individual regions out from the struct. Instead of going back to single bank mode on `Drop`, we instead transition to single bank mode when calling `Flash::into_regions()`.
* Add missing `otp_region` to the dual bank layout and implement `NorFlash` for the alternate regions.

1482: Add ConcatFlash utility r=Dirbaio a=rmja

This PR adds a `ConcatFlash` utility that can be used to concatenate two `NorFlash` flashes. This is especially useful when concatenating multiple flash regions with unequal erase size.


Co-authored-by: Rasmus Melchior Jacobsen <rmja@laesoe.org>
2023-05-25 01:05:32 +00:00
Rasmus Melchior Jacobsen
e785e1bc22 Add ConcatFlash utility 2023-05-24 14:40:34 +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
Rasmus Melchior Jacobsen
187551f914 Move module documentation 2023-05-22 16:55:18 +02:00
Rasmus Melchior Jacobsen
cd1bf31fed Add YieldingAsync adapter 2023-05-22 16:48:31 +02:00