Dario Nieuwenhuis
21072bee48
split embassy-util
into embassy-futures
, embassy-sync
.
2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
Dario Nieuwenhuis
709df0dc1d
nrf: replace PhantomData usages with PeripheralRef.
2022-07-23 15:13:47 +02:00
Dario Nieuwenhuis
f02ba35482
Remove PeripheralRef::into_inner()
2022-07-23 14:27:45 +02:00
Dario Nieuwenhuis
4901c34d9c
Rename Unborrowed -> PeripheralRef, Unborrow -> Peripheral
2022-07-23 14:00:19 +02:00
Grant Miller
65a82d02d1
WIP: Make unborrow safe to use
2022-07-23 01:33:22 +02:00
Henrik Alsér
d637510b44
Associated type
2022-07-09 00:00:55 +02:00
Henrik Alsér
f30ff9cadc
Shared buses with SetConfig
2022-07-08 15:47:47 +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
9bad9365dc
Update rust nightly, embedded-hal 1.0, embedded-hal-async.
2022-03-11 00:38:07 +01:00
Til Blechschmidt
63030bf998
Move EasyDMA documentation to module level
2022-03-08 17:49:15 +01:00
Til Blechschmidt
993428e2d4
Refactor _from_ram methods to use more readable copy operation
2022-03-02 22:48:58 +01:00
Til Blechschmidt
62407da29b
Fix EasyDMA slice copying not actually copying data
2022-02-23 23:38:18 +01:00
Til Blechschmidt
66fdec7abe
Add defmt log outputs for SPIM memcpy
2022-02-23 23:27:12 +01:00
Til Blechschmidt
e96dd3654a
Change SPIM methods to copy slice if required and add non-copying variants
2022-02-23 22:51:59 +01:00
bors[bot]
f2eb438905
Merge #615
...
615: rp: remove OptionalPin r=Dirbaio a=Dirbaio
Mirror of https://github.com/embassy-rs/embassy/pull/605 for rp2040
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-02-12 00:46:40 +00:00
Dario Nieuwenhuis
49eb2f769e
nrf: remove stray mention of OptionalPin
2022-02-12 01:33:56 +01:00
bors[bot]
e728a32672
Merge #613
...
613: Rust stable support r=Dirbaio a=Dirbaio
This PR adds (limited) stable Rust support!
The drawbacks are:
- No `#[embassy::task]`, `#[embassy::main]`. (requires `type_alias_impl_trait`). You have to manually allocate the tasks somewhere they'll live forever. See [example](https://github.com/embassy-rs/embassy/blob/master/examples/nrf/src/bin/raw_spawn.rs )
- No async trait impls (requires GATs). Note that the full API surface of HALs is still available through inherent methods: #552 #581
- Some stuff is not constructible in const (requires `const_fn_trait_bound`), although there's an (ugly) workaround for the generic `Mutex`.
So it's not that bad in the end, it's fully usable for shipping production-ready firmwares. We'll still recommend nightly as the default, until GATs and `type_alias_impl_trait` are stable.
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-02-12 00:30:47 +00:00
Dario Nieuwenhuis
20e14b8edb
embassy, embassy-nrf: add nightly
Cargo feature to gate nightly-only features.
2022-02-12 01:16:31 +01:00
Dario Nieuwenhuis
6de02bb23e
nrf: remove OptionalPin
2022-02-12 01:07:02 +01:00
Dario Nieuwenhuis
7997687f3b
nrf: impl embedded-hal 1.0 and embedded-hal-async traits.
2022-01-13 23:56:39 +01:00
Dario Nieuwenhuis
a287fef687
nrf/spim: expose all functionality as inherent methods.
2022-01-13 23:56:39 +01:00
Dario Nieuwenhuis
7086642ce4
nrf/spim: share code between blocking+async.
2022-01-13 19:53:12 +01:00
Dario Nieuwenhuis
d1740b10f0
Lower some verbose logs to trace.
2021-12-23 13:43:14 +01:00
Ulf Lilleengen
2bbd1ddb8a
Remove unneeded rustfmt::skip
2021-12-16 11:37:53 +01:00
Dario Nieuwenhuis
ead987245d
embassy: Refactor module structure to remove kitchen-sink util
.
2021-09-11 02:35:35 +02:00
Dario Nieuwenhuis
7bfb763e09
Rename embassy-extras to embassy-hal-common
2021-07-29 13:44:51 +02:00
Bob McWhirter
58edefff6e
Formatting.
2021-07-23 13:22:39 -04:00
Bob McWhirter
d5ed5c3ef3
Split up the nRF impls for SPI traits.
2021-07-23 13:22:39 -04:00
Dario Nieuwenhuis
e7dc5c0939
fmt: make all macros macro_rules
so scoping is consistent.
2021-06-07 00:16:39 +02:00
Folkert
3f74c557ed
skip 'in ram' check for mutable slice in fullduplex
2021-06-05 11:34:50 +02:00
Folkert
990d83d424
match on mode
2021-06-03 11:38:25 +02:00
Dario Nieuwenhuis
42abeca493
nrf/spim: disable and deconfigure pins on drop.
2021-05-26 20:11:23 +02:00
Rukai
3e83acc1cb
Fix unused field warnings
2021-05-17 20:23:04 +10:00
Rukai
149ddf2f29
Fix warnings
2021-05-17 19:48:58 +10:00
Dario Nieuwenhuis
a5ad79927e
nrf: add Unborrow<Target = Self>
bound to all instance traits
2021-05-17 01:01:31 +02:00
Dario Nieuwenhuis
bd9589d0ce
nrf: add support for nrf52805, nrf52811, nrf52820
2021-05-17 00:57:20 +02:00
Richard Dodd
212e83aa22
Make changes to Write
as well as Transfer
2021-05-05 19:18:57 +01:00
Richard Dodd
9de12a0a7a
Address issues in PR.
2021-05-05 18:25:14 +01:00
Richard Dodd
1ad18aa09a
Implement the blocking hal api for SPIM.
2021-05-05 14:50:28 +01:00
Dario Nieuwenhuis
97ca54fa66
Rename PeripheralBorrow to Unborrow
2021-04-14 19:59:52 +02:00
Dario Nieuwenhuis
c15411d1bd
Remove Pin from SPI
2021-04-14 17:04:40 +02:00
Dario Nieuwenhuis
b9e709403d
nrf: better macro naming.
2021-03-29 00:58:58 +02:00
Richard Dodd
2c248dab56
nrf/spim: make mosi,miso optional
2021-03-29 00:58:58 +02:00
Dario Nieuwenhuis
7b6086d19e
nrf: add unborrow! macro
2021-03-29 00:58:58 +02:00
Dario Nieuwenhuis
d5ff1a0ae3
nrf: rename inner peripheral to peri
for consistence
2021-03-29 00:58:57 +02:00
Dario Nieuwenhuis
16bb6fd6ac
nrf: Specify connected
bit in psel_bits
2021-03-29 00:58:57 +02:00
Dario Nieuwenhuis
f36cbe5e0c
nrf/spim: do not use PeripheralMutex
2021-03-29 00:58:57 +02:00
Dario Nieuwenhuis
fcf6a63b5c
nrf: add owned Peripherals struct, migrate gpio and spim
2021-03-29 00:58:57 +02:00