Commit Graph

1585 Commits

Author SHA1 Message Date
Ulf Lilleengen
14aa4265db Ensure linear stride 2021-09-15 13:58:01 +02:00
Ulf Lilleengen
701dd9fa36 Calculate port number based on address and stride
This allows out of order letter to port mapping
2021-09-15 13:58:01 +02:00
Ulf Lilleengen
840a83e196 Add support for chip definitions with a dash 2021-09-15 13:58:01 +02:00
Ulf Lilleengen
fb697a2657 Updates 2021-09-15 12:46:20 +02:00
Dario Nieuwenhuis
bb72f7eb98
Merge pull request #390 from lulf/wasm-executor
Wasm executor support
2021-09-13 18:55:17 +02:00
Ulf Lilleengen
4e7ce29ec9 Add missing toolchain 2021-09-13 18:47:32 +02:00
Ulf Lilleengen
99a94f1d50 Update version of critical-section 2021-09-13 17:05:17 +02:00
Dario Nieuwenhuis
d6faf69e09
Merge pull request #378 from numero-744/gen-features-using-rust-not-python
Use our beloved Rust instead of Python
2021-09-13 16:47:01 +02:00
Ulf Lilleengen
e24528051b Add WASM support for executor
* Adds an executor for WASM runtimes based on wasm_bindgen.
* Add time driver based on JS time handling.
* Add example that can run in browser locally.
* Update to critical-section version that supports 'std' flag
2021-09-13 16:42:39 +02:00
Dario Nieuwenhuis
f1c35b40c7
Merge pull request #396 from embassy-rs/channel-fixes
embassy/channel: several improvements
2021-09-13 00:25:53 +02:00
Dario Nieuwenhuis
70e5877d68 embassy/channel: switch to use MutexKind 2021-09-13 00:08:41 +02:00
Dario Nieuwenhuis
5be5bdfd20 embassy/blocking_mutex: add MutexKind to allow writing code generic over mutex kinds. 2021-09-12 23:28:00 +02:00
Côme ALLART
f051f57d55 build(gen-features): remove unused toml dependency 2021-09-11 20:14:32 +02:00
Côme ALLART
99ccf18160 fix(gen-features): keep data files order 2021-09-11 20:04:57 +02:00
Dario Nieuwenhuis
e1f9dd1170 embassy/channel: remove unused receiver_consumed 2021-09-11 02:58:41 +02:00
Dario Nieuwenhuis
b78f4695c4 embassy/channel: use heapless::Deque. 2021-09-11 02:49:16 +02:00
Dario Nieuwenhuis
67fa6b06fa
Merge pull request #394 from embassy-rs/utilpocalypse
embassy: Refactor module structure to remove kitchen-sink `util`.
2021-09-11 02:41:04 +02:00
Dario Nieuwenhuis
ead987245d embassy: Refactor module structure to remove kitchen-sink util. 2021-09-11 02:35:35 +02:00
Dario Nieuwenhuis
200f881048
Merge pull request #392 from embassy-rs/update-deps
Update lots of deps
2021-09-11 01:43:43 +02:00
Dario Nieuwenhuis
f2623e7e9b Update lots of deps 2021-09-11 01:35:23 +02:00
Dario Nieuwenhuis
9082e5f6c5
Merge pull request #389 from adamgreig/stm32h7-eth-fix
STM32H7: Ethernet: Disable RA in MAC filtering, fix order of MACA0 register writes
2021-09-07 11:12:46 +02:00
Adam Greig
14fa6c2760
STM32H7: Ethernet: Disable RA in MAC filtering, fix order of MACA0 register writes. 2021-09-06 23:16:43 +01:00
Dario Nieuwenhuis
2928b99218
Merge pull request #388 from bobmcwhirter/ethfix
Don't set SAF=true, do set RA=true for Ethernet.
2021-09-06 20:27:37 +02:00
Bob McWhirter
d4bf78a0c1 Don't set SAF=true, do set RA=true for Ethernet.
Source-Address-Filtering is not helping the board to receive packets.
For unknown reasons, the Receive-All is required, when in theory
it should not be required. Until we figure it out, follow the
stm32h7xx-hal example of setting RA=true.
2021-09-06 14:21:26 -04:00
Dario Nieuwenhuis
eff8ae9c4d
Merge pull request #381 from lulf/stm32wl55-subghz
Add HAL for SubGhz peripheral for STM32 WL series
2021-09-06 00:58:42 +02:00
Côme ALLART
addee8778d refactor(gen-features): use Rust instead of Python
Added support for /stm32-metapac
2021-09-05 20:19:13 +02:00
Dario Nieuwenhuis
12894b3c7a
Merge pull request #387 from embassy-rs/remove-features
Remove trait_alias, allow(incomplete_features).
2021-09-03 17:33:27 +02:00
Dario Nieuwenhuis
a76526add6 rp: remove use of never type 2021-09-03 17:17:02 +02:00
Dario Nieuwenhuis
11d2b0cdc1 Remove more unused features. 2021-09-03 17:13:54 +02:00
Dario Nieuwenhuis
de016e8456 Remove trait_alias, allow(incomplete_features).
trait_alias seems unused. no idea why it's there.
2021-09-03 17:00:58 +02:00
Dario Nieuwenhuis
65bceafa68
Merge pull request #386 from lulf/fix-std-macros
Fix embassy::main macros for std target
2021-09-02 14:50:35 +02:00
Ulf Lilleengen
5f04d6e6c5 Fix embassy::main macros for std target 2021-09-02 14:45:54 +02:00
Dario Nieuwenhuis
a3beb1ca3d
Merge pull request #385 from embassy-rs/remove-embassy-std
Remove embassy-std crate.
2021-09-02 14:38:32 +02:00
Dario Nieuwenhuis
ead6239435 Remove embassy-std crate.
All std features are in the core `embassy` crate.
2021-09-02 14:32:53 +02:00
Dario Nieuwenhuis
d0c8749399
Merge pull request #382 from fnafnio/typestate_nrf_timer
Typestate nrf timer
2021-09-02 13:39:55 +02:00
f_punk
34c66fa78d removed type aliases
NotAwaitable as default generic param
added awaitable_timer example
2021-09-02 12:02:31 +02:00
Ulf Lilleengen
0f3d278ce3 Temporarily comment unused code 2021-09-02 11:31:38 +02:00
Ulf Lilleengen
4dccda085f Add missing files for G0 2021-09-02 11:19:54 +02:00
Ulf Lilleengen
e6eb45eaee Cargo fmt 2021-09-02 10:46:49 +02:00
Ulf Lilleengen
f175574bcf Cargo fmt 2021-09-02 10:43:08 +02:00
Ulf Lilleengen
16aa1d1770 ADd missing file 2021-09-02 10:42:11 +02:00
Ulf Lilleengen
7ad6280e65 Add HAL for SubGhz peripheral for STM32 WL series
Based on the HAL from stm32wl, the peripheral driver has been
modified to fit into embassy, using the embassy APIs, providing
operation of the radio peripheral.

The initial version does not offer any async APIs, but the example
shows how the radio IRQ can be used to perform async TX of the radio.
2021-09-02 10:39:56 +02:00
Dario Nieuwenhuis
db3cb02032
Merge pull request #383 from embassy-rs/saadc-fixes
nrf: Saadc fixes
2021-09-01 23:59:56 +02:00
Dario Nieuwenhuis
6b158ba94a nrf/saadc: add example 2021-09-01 23:55:20 +02:00
Dario Nieuwenhuis
a81b963561 nrf/saadc: don't use wake_on_interrupt. 2021-09-01 23:54:26 +02:00
Dario Nieuwenhuis
bc68657c23
Merge pull request #379 from bobmcwhirter/random_range
Random range
2021-09-01 22:53:10 +02:00
f_punk
1cef7134d4 moved CC::wait to awaitable typestate 2021-09-01 16:20:32 +02:00
f_punk
a0c40562ea added typestate to nrf-Timer
useful for hooking up the PPI to an Event without needing interrupt
tested with buffered_uart example on nRF52840-DK
2021-09-01 16:16:56 +02:00
Bob McWhirter
aaa4a477d5 Formatting. 2021-09-01 09:47:46 -04:00
Bob McWhirter
37ceae908b Rename Random impl to Rng.
Create Random struct providing next_x(range) for all T:Rng.
2021-09-01 09:39:33 -04:00