Dario Nieuwenhuis
ab85eb4b60
nrf: remove mod sealed.
2024-04-05 00:48:46 +02:00
Priit Laes
1aa999c2a8
nrf: Use .is_empty() instead of .len() == 0
2024-02-17 13:30:19 +02:00
Frank Plowman
7d11119168
embassy-nrf: Don't break lines; make rustfmt happy
2024-02-16 20:47:19 +00:00
Frank Plowman
07987aea4e
embassy-nrf: Fix various typos and make style more consistent
2024-02-16 20:45:58 +00:00
Frank Plowman
c5f39d5c89
embassy-nrf: Use fully-qualified core::mem::transmute
2024-02-16 20:42:14 +00:00
Frank Plowman
bcb0be21c1
embassy-nrf: Fix PDM gain register value derivation
...
Co-authored-by: Sol Harter <sol@glowinthedark.co.uk>
2024-02-16 17:24:58 +00:00
Dániel Buga
aed3e5674f
Drop futures dependency in embassy-nrf
2023-10-31 10:13:27 +01: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
Quentin Smith
7555a1e302
cargo fmt
2023-07-18 18:32:19 -04:00
Quentin Smith
be7fbe50d7
Update pdm driver to build with all the PACs
2023-07-18 18:31:32 -04:00
Quentin Smith
2c01f277c2
cargo fmt
2023-07-18 17:17:04 -04:00
Quentin Smith
c333d855fc
Remove merge error
2023-07-18 17:14:25 -04:00
Quentin Smith
6f02403184
Merge remote-tracking branch 'origin/main' into nrf-pdm
2023-07-17 21:31:43 -04: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
f8f1d3bcf0
nrf/pdm: make available on all chips, use Instance trait, 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
pbert
a4afab4640
add support for pdm microphones in nrf driver
2022-10-13 18:37:53 +02:00
Quentin Smith
d896f80405
util -> sync rename
2022-08-23 23:02:48 -04:00
Quentin Smith
ed97e61dbe
PDM clock frequency control
2022-08-21 02:16:26 -04:00
Quentin Smith
029713eca0
Stop PDM sampling when future is dropped
2022-08-21 02:04:11 -04:00
Quentin Smith
3d26573c6b
Discard the first N samples due to transients
2022-08-21 01:44:04 -04:00
Quentin Smith
0963b5f92c
Add continuous PDM sampling with example
2022-08-20 17:58:54 -04:00
Quentin Smith
530f192acc
Set gain at runtime
2022-08-20 17:08:29 -04:00
Quentin Smith
a46f33b214
Initial PDM driver
2022-08-20 16:37:51 -04:00