Dario Nieuwenhuis
2c45b5c519
sync/pipe: update to clarify docs that it is byte-oriented.
...
There was some language copypasted from Channel talking about "messages"
or "values", that is not really accurate with Pipe.
2023-03-26 23:32:12 +02:00
bors[bot]
9c7b9b7848
Merge #1288
...
1288: fix(rp): spi transfer r=elpiel a=elpiel
Fixes #1181
Co-authored-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-26 15:55:58 +00:00
Lachezar Lechev
7be63b3468
fix: spi transfer bug and additions to test
...
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-26 18:14:17 +03:00
Lachezar Lechev
cd2f28d2ab
chore: add spi_async tests for uneven buffers
...
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-24 12:14:38 +02:00
Lachezar Lechev
9939d43800
fix: PR comment
...
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-24 12:14:23 +02:00
bors[bot]
299689dfa2
Merge #1295
...
1295: (embassy-rp): Add embedded-io blocking Read + Write for BufferedUart r=MathiasKoch a=MathiasKoch
Co-authored-by: Mathias <mk@blackbird.online>
2023-03-23 13:27:14 +00:00
Mathias
88483b5abe
Fix return type for EH-nb traits
2023-03-23 14:26:37 +01:00
Mathias
04f90e3a9d
Add embedded-io blocking Read + Write for BufferedUart
2023-03-23 14:18:19 +01:00
bors[bot]
aa77a06d58
Merge #1287
...
1287: stm32: use stm32-metapac from crates.io, remove stm32-data submodule. r=Dirbaio a=Dirbaio
- `embassy-stm32` uses `stm32-metapac` from `crates.io`.
- Remove `stm32-data` submodule.
- Remove `stm32-metapac`, `stm32-metapac-gen`. These are now in the `stm32-data` repo.
- Remove `stm32-gen-features`, since it used `stm32-data` directly.
- The feature list in `stm32-metapac` is generated by `stm32-metapac-gen` now.
- The feature list in `embassy-stm32` can be updated by hand by copypasting from `stm32-metapac`'s `Cargo.toml`. We can add a script to do this automatically later if that's too annoying.
- Remove outdated `xtask` scripts that no longer work. Not needed anymore, you can run CI locally by doing `./ci.sh`.
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2023-03-21 14:04:10 +00:00
bors[bot]
425a35bf8a
Merge #1292
...
1292: perf(pubsub): Skip not needed clone of last message r=Dirbaio a=rmja
... return the pop'd message instead
Co-authored-by: Rasmus Melchior Jacobsen <rmja@laesoe.org>
2023-03-21 12:29:29 +00:00
Rasmus Melchior Jacobsen
ce7bd6955f
perf(pubsub): Skip clone on last message
2023-03-21 13:25:49 +01:00
Lachezar Lechev
7a4db1da26
fix(rp): spi transfer
...
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
2023-03-20 16:34:30 +02:00
Dario Nieuwenhuis
0b49b588a2
stm32: use stm32-metapac from crates.io, remove stm32-data submodule.
2023-03-20 02:38:12 +01:00
bors[bot]
b6663a013f
Merge #1274
...
1274: Example using the PIO to drive WS2812 aka Neopixel RGB leds r=Dirbaio a=CBJamo
This example also uses a pio program compiled at runtime, rather than one built at compile time. There's no reason to do that, but it's probably useful to have an example that does this as well.
Co-authored-by: Caleb Jamison <Caleb@hellbender.com>
2023-03-19 23:43:41 +00:00
bors[bot]
3e541c43e7
Merge #1282
...
1282: fix(pubsub): Pop messages with count=0 after unsubscribe r=Dirbaio a=rmja
Co-authored-by: Rasmus Melchior Jacobsen <rmja@laesoe.org>
2023-03-19 23:19:23 +00:00
Dario Nieuwenhuis
fcd24adba9
vscode: recommend extensions, disable toml formatting, update.
2023-03-19 22:38:34 +01:00
bors[bot]
4bfe624893
Merge #1285
...
1285: Add must_use to OnDrop r=Dirbaio a=rmja
Co-authored-by: Rasmus Melchior Jacobsen <rmja@laesoe.org>
2023-03-17 14:38:19 +00:00
Rasmus Melchior Jacobsen
7be385dbb1
Add must_use to OnDrop
2023-03-17 11:40:19 +01:00
bors[bot]
f9c0c53e12
Merge #1284
...
1284: Fix APB clock calculation for several STM32 families r=Dirbaio a=ericyanush
This PR fixes #1283
Co-authored-by: Eric Yanush <eric@yanu.sh>
2023-03-17 07:49:09 +00:00
Eric Yanush
13f0c64a8c
Fix APB clock calculation for several STM32 families
2023-03-16 21:21:39 -06:00
Rasmus Melchior Jacobsen
472df3fad6
fix(pubsub): Pop messages which count is 0 after unsubscribe
2023-03-15 16:45:18 +01:00
bors[bot]
2c9f289f40
Merge #1281
...
1281: Wait for waker when no data is available on UDP socket. r=Dirbaio a=royb3
Co-authored-by: Roy Buitenhuis <roy.buitenhuis@technolution.nl>
2023-03-15 12:59:11 +00:00
Roy Buitenhuis
46b437dea0
Wait for waker when no data is available on UDP socket.
2023-03-15 13:56:40 +01:00
bors[bot]
e9a161b462
Merge #1279
...
1279: stm32: remove unused embedded-storage-async. r=Dirbaio a=Dirbaio
bors r+
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2023-03-14 16:28:47 +00:00
Dario Nieuwenhuis
43462947ed
stm32: remove unused embedded-storage-async.
2023-03-14 17:27:40 +01:00
bors[bot]
e73c6c9d90
Merge #1277
...
1277: (embassy-rp): Allow upgrading a blocking uart to a BufferedUart r=MathiasKoch a=MathiasKoch
Also implement blocking embedded-nal serial traits for BufferedUart
Co-authored-by: Mathias <mk@blackbird.online>
2023-03-14 12:08:51 +00:00
Mathias
89a371d10c
Add HIL test for into_buffered uart on embassy-rp
2023-03-14 12:46:58 +01:00
Mathias
bce1ce7dcb
Allow upgrading a blocking uart to a BufferedUart, and implement blocking serial traits for BufferedUart
2023-03-14 10:36:30 +01:00
Caleb Jamison
12d6e37b3f
Example using the PIO to drive WS2812 aka Neopixel RGB leds
...
This example also uses a pio program compiled at runtime, rather than one built at compile time. There's no reason to do that, but it's probably useful to have an example that does this as well.
2023-03-11 02:58:28 -05:00
bors[bot]
055597063f
Merge #1270
...
1270: time: add power-of-2 kHz tick rates. r=Dirbaio a=Dirbaio
Fixes #1269
bors r+
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2023-03-09 22:32:51 +00:00
Dario Nieuwenhuis
79061021f9
time: add power-of-2 kHz tick rates.
...
Fixes #1269
2023-03-09 23:32:00 +01:00
bors[bot]
c9d89f391b
Merge #1264
...
1264: Add multicast to udp socket r=Dirbaio a=28Smiles
This should make it possible to implement mDNS for embassy-net, which in turn is essential for smart home
Co-authored-by: Leon Camus <leon.c@gmx.de>
Co-authored-by: 28Smiles <Leon.c@gmx.de>
2023-03-08 12:16:23 +00:00
Leon Camus
e484cb1b87
refactor: Multicast method modifiers on stack to public
...
revert: udp.rs
2023-03-08 12:37:00 +01:00
bors[bot]
8fd30e407c
Merge #1267
...
1267: macros: better validation of function signatures. r=Dirbaio a=Dirbaio
Fixes #1266
bors r+
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2023-03-08 08:17:44 +00:00
Dario Nieuwenhuis
b2c6dc45e3
Fix examples broken by the macro fix.
2023-03-08 09:17:01 +01:00
bors[bot]
969e85150c
Merge #1262
...
1262: bump embedded-storage-async to 0.4 r=Dirbaio a=mehmetalianil
I just haven't found a way to revert the altered stm-metapac contents due to building.
Co-authored-by: Mehmet Ali Anil <mehmet@grusbv.com>
2023-03-08 01:26:45 +00:00
Dario Nieuwenhuis
e7a19a9725
macros/main: copy fn return to task.
...
This prevents this bad code from compiling.
```rust
async fn main(_spawner: Spawner) -> ! {
// not really noreturn!
}
```
2023-03-08 02:03:39 +01:00
Dario Nieuwenhuis
a614e697d0
macros: better validation of function signatures.
...
Fixes #1266
2023-03-08 01:59:06 +01:00
Leon Camus
993875e11f
fix: Add qualified imports
2023-03-07 23:52:25 +01:00
Leon Camus
2087561003
lint: Remove unused imports
2023-03-07 23:51:10 +01:00
Leon Camus
b62e3e1d47
lint: Cargo fmt
2023-03-07 23:40:31 +01:00
28Smiles
468c4266c8
Merge branch 'embassy-rs:master' into master
2023-03-07 23:39:16 +01:00
Mehmet Ali Anil
18646c579c
Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy into emb-storage-async-0p4
2023-03-07 23:36:41 +01:00
Mehmet Ali Anil
b1bc034a7e
Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy into emb-storage-async-0p4
2023-03-07 23:35:56 +01:00
Mehmet Ali Anil
fded9fa52a
Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy into emb-storage-async-0p4
2023-03-07 23:21:39 +01:00
Mehmet Ali Anil
6bf8d090a1
Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy into emb-storage-async-0p4
2023-03-07 23:21:19 +01:00
Mehmet Ali Anil
4054fb8779
Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy into emb-storage-async-0p4
2023-03-07 23:17:28 +01:00
Mehmet Ali Anil
935633c90b
Merge upstream
2023-03-07 23:16:54 +01:00
bors[bot]
bd4c4209af
Merge #1265
...
1265: nrf/uicr: only check lowest bit. r=Dirbaio a=Dirbaio
This mirrors what nrfx does. Also it won't reboot/warn if NFCPINS is set to either 0xFFFF_FFFE or 0x0000_0000, which are all valid.
bors r+
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2023-03-07 14:30:22 +00:00
Dario Nieuwenhuis
27e989afa9
nrf/uicr: only check lowest bit.
...
This mirrors what nrfx does. Also it won't reboot/warn if NFCPINS is set to either
0xFFFF_FFFE or 0x0000_0000, which are all valid.
2023-03-07 15:28:27 +01:00