Dario Nieuwenhuis
eeb072d9cb
Update Rust nightly.
2022-10-26 16:47:29 +02:00
ceekdee
327d3cf0df
Change rak4631 feature to sx126x, removing use in board-specific processing; simplify the P2P examples; correct RSSI computation.
2022-10-10 12:35:42 -05:00
Chuck Davis
3d0ba58b2d
Merge branch 'embassy-rs:master' into master
2022-10-08 14:38:41 -05:00
ceekdee
f554962f54
Improve generics and consolidate antenna handling
2022-10-08 14:32:22 -05:00
chrysn
6718ca3a94
all Cargo.toml: Add license to all crate Cargo.toml files
...
Closes: https://github.com/embassy-rs/embassy/issues/1002
2022-10-07 12:41:56 +02:00
Ulf Lilleengen
72c2e985bb
Update embedded-hal versions and explicitly pin
2022-09-29 11:27:46 +02:00
Chuck Davis
bb84d7a0ae
Merge branch 'embassy-rs:master' into master
2022-09-28 14:33:03 -05:00
ceekdee
526e90d3f3
Update some outstanding questions
2022-09-28 14:27:34 -05:00
Ulf Lilleengen
d7f7614b22
Remove subghz static lifetime requirement
2022-09-28 11:32:11 +02:00
ceekdee
a89a0c2f12
Initial add for sx126x
2022-09-27 21:55:41 -05:00
Dario Nieuwenhuis
a0487380da
Replace futures::future::poll_fn -> core::future::poll_fn.
2022-09-22 16:42:49 +02:00
Dario Nieuwenhuis
897b72c872
Update Rust nightly.
...
Removes feature(generic_associated_types)
2022-09-22 16:38:14 +02:00
bors[bot]
22c32b5d5c
Merge #939
...
939: time: add more tick rates, use 1mhz as default. r=Dirbaio a=Dirbaio
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-04 22:13:34 +00:00
Timo Kröger
6cdff72d6d
run cargo fmt
2022-09-03 20:36:18 +02:00
Dario Nieuwenhuis
5327b9c289
time: add more tick rates, use 1mhz as default.
2022-09-02 00:59:34 +02:00
Timo Kröger
c30b38586a
lora: Fix unused import warning
2022-08-26 15:44:58 +02:00
Ulf Lilleengen
2636a8dc2e
Use released rust-lorawan with radio fixes
2022-08-26 15:44:58 +02:00
Ulf Lilleengen
5d114479ff
Adjust timings after offset calculation fix
2022-08-26 15:44:58 +02:00
Ulf Lilleengen
1f36da5ca6
Make settings configurable
2022-08-26 15:44:58 +02:00
Ulf Lilleengen
af845b7d44
Add impl for offset radio interface
2022-08-26 15:44:58 +02:00
Timo Kröger
60ca5e8479
lora: Improve TX/RX parameters
...
Match the settings used in the C driver
2022-08-26 15:44:58 +02:00
Timo Kröger
f31116cafa
lora: Make some options configurable
...
Call `config()` only once at construction not with every RX and TX operation.
The Lora-E5 only supports HP mode, use that instead.
The nucleo board supports both HP and LP and should continue to work.
2022-08-26 15:44:58 +02:00
Timo Kröger
69d80c086d
lora: Use a trait for RF frontend switching
...
The Seeed Studio Lora-E5 module only has two control pins.
With the `RadioSwitch` trait the user can implement any method required
by the module/board to control the TX/RX direction of the radio frontend.
2022-08-26 15:44:58 +02:00
Timo Kröger
6ee29ff0bd
lora: Propagate "defmt" feature to lora crates
2022-08-26 15:44:58 +02:00
Timo Kröger
8e8106ef55
lora: Improve IRQ handling
...
* Interrupt handler only triggers a waker:
Do the actual interrupt processing which involves SUBGHZ SPI coms in the task.
* Do not require a static state for the constructor.
* Remove unsafe from construcor.
2022-08-26 15:44:57 +02:00
Dario Nieuwenhuis
5677b13a86
sync: flatten module structure.
2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
21072bee48
split embassy-util
into embassy-futures
, embassy-sync
.
2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
5daa173ce4
Split embassy-time from embassy-executor.
2022-08-18 01:22:30 +02:00
Dario Nieuwenhuis
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
Dario Nieuwenhuis
4901c34d9c
Rename Unborrowed -> PeripheralRef, Unborrow -> Peripheral
2022-07-23 14:00:19 +02:00
Dario Nieuwenhuis
8a9d2f59af
Update embassy-stm32
2022-07-23 02:40:13 +02:00
Dario Nieuwenhuis
948bb93dc2
docs: Add $COMMIT to git srclinks.
2022-06-26 23:55:38 +02:00
Dario Nieuwenhuis
1f746e0939
Remove the authors field from Cargo.tomls
...
It currently contains whoever was first to write some code for the crate,
even if many more people have contributed to it later.
The field is "sort of" deprecated, it was made optional recently:
https://rust-lang.github.io/rfcs/3052-optional-authors-field.html
Due the the reasons listed there I believe removing it is better than
setting it to generic fluff like "The Embassy contributors".
2022-06-18 02:16:40 +02:00
Dario Nieuwenhuis
88e36a70bd
Update to 2021 edition. ( #820 )
2022-06-18 02:15:48 +02:00
Daniel Bevenius
06a76cd7ce
Extract setting of lora modulation params
...
This commit suggests extracting the lora modulation parameters into a
separate function which can then be called from both the do_tx, and
the do_rx functions.
2022-06-15 16:21:52 +02:00
Dario Nieuwenhuis
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
Dario Nieuwenhuis
5085100df2
Add embassy-cortex-m crate.
...
- Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`.
- Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore)
- Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
2022-06-12 21:45:38 +02:00
Dario Nieuwenhuis
6320e30adf
Update embedded-hal-async to 0.1.0-alpha.1
2022-05-29 22:34:08 +02:00
Ulf Lilleengen
2c0e28aa0c
Update to released lorawan crates
2022-04-26 19:06:15 +02:00
Dario Nieuwenhuis
3251a21fb7
Switch to crates.io embedded-hal, embedded-hal-async.
...
This temporarily removes support for the async UART trait, since it's
not yet in embedded-hal-async.
2022-04-22 19:58:24 +02:00
Ulf Lilleengen
86e52e67d0
Update to latest rust-lorawan version
2022-04-08 12:58:57 +02:00
Dario Nieuwenhuis
aee19185b7
Add more docserver metadata.
2022-04-05 21:05:09 +02:00
Dario Nieuwenhuis
9bad9365dc
Update rust nightly, embedded-hal 1.0, embedded-hal-async.
2022-03-11 00:38:07 +01:00
Ulf Lilleengen
4032fc0655
Support unstable-trait feature for stm32
2022-01-26 22:39:06 +01:00
Dario Nieuwenhuis
58fc64722c
stm32/gpio: expose all functionality as inherent methods.
2022-01-19 17:59:55 +01:00
Ulf Lilleengen
2bbd1ddb8a
Remove unneeded rustfmt::skip
2021-12-16 11:37:53 +01:00
Ulf Lilleengen
985c11fad5
Update rust-toolchain
2021-12-16 11:34:20 +01:00
Ulf Lilleengen
81ec4c82fd
Flush MISO before transfer operation
2021-12-03 09:53:28 +01:00
Ulf Lilleengen
9a730ef692
Refactor sx127x radio to use async SPI with DMA
2021-12-03 09:53:28 +01:00
Ulf Lilleengen
b9693c0b91
Update rust-lorawan to version supporting defmt 0.3
2021-12-02 19:10:29 +01:00