Dario Nieuwenhuis
7ad76f5f60
Use raw slices .len() method instead of unsafe hacks.
...
Stabilized in 1.79.
2024-06-13 20:41:08 +02:00
Dario Nieuwenhuis
ab85eb4b60
nrf: remove mod sealed.
2024-04-05 00:48:46 +02:00
Priit Laes
27411658d9
nrf: spim/spis: Add size checks for EasyDMA buffer
...
On most nRF chips, maximum buffer size for EasyDMA is 255, thus
we never got any data when attempting to use 256 bytes as RX/TX buffer.
2024-02-08 21:48:41 +02:00
Matthew Tran
6efb5fd284
nrf/spi: add bit order config
2024-01-26 22:38:03 -06:00
swanandx
046af81a10
fix: info_ref! can't be called on Option
2024-01-03 19:33:43 +05:30
swanandx
face031245
feat: new_txonly_nosck in spis
2024-01-03 19:22:01 +05:30
xoviat
d2a2734752
nrf, rp: update set_config
2023-10-01 09:37:42 -05:00
Priit Laes
93d4cfe7c1
nrf: spis: Use SetConfig trait internally to reduce duplication
2023-09-10 23:17:30 +02:00
Dario Nieuwenhuis
036e6ae30c
Rename embassy-hal-common to embassy-hal-internal, document it's for internal use only. ( #1700 )
2023-07-28 13:23:22 +02:00
Dario Nieuwenhuis
921780e6bf
Make interrupt module more standard.
...
- Move typelevel interrupts to a special-purpose mod: `embassy_xx::interrupt::typelevel`.
- Reexport the PAC interrupt enum in `embassy_xx::interrupt`.
This has a few advantages:
- The `embassy_xx::interrupt` module is now more "standard".
- It works with `cortex-m` functions for manipulating interrupts, for example.
- It works with RTIC.
- the interrupt enum allows holding value that can be "any interrupt at runtime", this can't be done with typelevel irqs.
- When "const-generics on enums" is stable, we can remove the typelevel interrupts without disruptive changes to `embassy_xx::interrupt`.
2023-06-08 18:00:48 +02:00
Dario Nieuwenhuis
404aa29289
cortex-m: remove owned interrupts.
2023-06-01 03:25:19 +02:00
Dario Nieuwenhuis
9f5762d365
nrf/spis: switch to new interrupt binding.
2023-03-06 00:17:51 +01:00
Dario Nieuwenhuis
b5cf332cc0
nrf: docs.
2023-02-01 01:17:41 +01:00
Henrik Alsér
da9f82f507
Fix pin refs
2022-11-22 02:13:03 +01:00
Henrik Alsér
33ee48b9e8
Merge branch 'spis' of github.com:kalkyl/embassy into spis
2022-11-22 00:55:46 +01:00
Henrik Alsér
a6d941fac3
Fix txonly/rxonly data pin dir, _from_ram and doc
2022-11-22 00:55:05 +01:00
kalkyl
0b066b22d1
Check events_acquired
2022-11-14 16:24:21 +01:00
kalkyl
3a1ddd66c6
Cleanup interrupts
2022-11-14 16:18:11 +01:00
kalkyl
8d2d5a30a5
Single waker
2022-11-14 11:39:55 +01:00
Henrik Alsér
dca11095e2
Disable UARTE in embassy-nrf::init
2022-11-13 01:49:55 +01:00
Henrik Alsér
aecfce1159
rustfmt
2022-11-05 01:36:29 +01:00
Henrik Alsér
207fa19551
Acquire semaphore on blocking
2022-11-05 01:34:52 +01:00
Henrik Alsér
7da18e194a
Add status checks
2022-11-05 01:12:25 +01:00
Henrik Alsér
a3e8a6bc3a
rustfmt
2022-11-05 00:19:52 +01:00
Henrik Alsér
1920e90dcd
embassy-nrf: Add SPIS module
2022-11-05 00:15:43 +01:00