aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/saadc.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat: add nRF54LM20A supportHaobo Gu2025-12-081-0/+1
| | | | Signed-off-by: Haobo Gu <[email protected]>
* fix: update saadc after API changesUlf Lilleengen2025-11-261-5/+5
|
* feat: improve nrf54 support using new nrf-pacUlf Lilleengen2025-10-281-7/+240
| | | | | | | | | | | | | * Update nrf-pac to version that modifies nrf52 register layout to match nrf54 to reduce the amount of cfg needed for nrf54 support. * Make the following peripherals available on nrf54: twim, twis, spim, spis, uart, buffered uarte, dppi, gpiote, pwm, saadc * Add examples tested on the nrf54 dk Some code is based on or copied from other pull requests, modified to match the new nrf-pac layout. Co-authored-by: Dmitry Tarnyagin <[email protected]>
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* fixup: documentation more preciseMichael Kefeder2025-09-291-1/+1
|
* Reset SAADC in Drop impl for nrf52, workaround for anomaly 241.Michael Kefeder2025-09-291-0/+13
|
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-34/+39
|
* clean the SAADC's register while droppingdrindr2025-03-231-0/+4
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-132/+115
|
* nrf, doc: Don't refer to `Default` impl of `saadc::ChannelConfig`Frank Plowman2024-08-091-1/+2
| | | | | | `saadc::ChannelConfig` does not implement the `Default` trait, so its documentation should not refer to it. Modify the documentation to instead describe how the struct should be created and configured.
* saddc regression fixnerwalt2024-07-151-1/+1
|
* Adding _nrf91 featurenerwalt2024-07-151-2/+2
| | | | Combining _nrf9160 and _nrf9120 in many places to reduce cfgs
* Adding support for 9120nerwalt2024-06-281-2/+2
|
* nrf: remove mod sealed.Dario Nieuwenhuis2024-04-051-10/+6
|
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-2/+2
| | | | internal use only. (#1700)
* Adjusted build issueCameron2023-06-301-2/+2
|
* Attempt to fix certain borrowing rule issuesCameron2023-06-301-1/+3
|
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-5/+5
| | | | | | | | | | | | - 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`.
* cortex-m: remove owned interrupts.Dario Nieuwenhuis2023-06-011-3/+3
|
* common/peripheral: do not require mut in PeripheralRef clone_unchecked.Dario Nieuwenhuis2023-04-111-1/+1
|
* nrf/saadc: switch to new interrupt binding.Dario Nieuwenhuis2023-03-061-28/+34
|
* nrf: docs.Dario Nieuwenhuis2023-02-011-21/+35
|
* Stop sampling when exiting the Saadc methodshuntc2023-01-181-3/+9
| | | | Prior to this commit, the onDrop function was being dropped immediately and not on exiting the Saadc sampling methods.
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-1/+1
|
* Avoid context switch and wait for stophuntc2022-08-311-47/+2
| | | | Should be more efficient given the sub 100 cycles to wait.
* Permits the future to be cancelledhuntc2022-08-301-2/+31
| | | | Includes documentation
* Additional docohuntc2022-08-301-0/+2
|
* Ensure that the sampling is stoppedhuntc2022-08-261-0/+43
| | | | Ensures that nRF saadc sampling is stopped and is awaited prior to exiting the two sampling methods. Not doing so causes a potential power drain and the potential for dropped buffer writes when having finished continuous sampling.
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-1/+1
|
* nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis2022-07-231-71/+63
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-14/+14
|
* Rename unsafe_impl_unborrow to impl_unborrowDario Nieuwenhuis2022-07-231-9/+4
|
* WIP: Make unborrow safe to useGrant Miller2022-07-231-13/+3
|
* nrf/saadc: add type-erased AnyInput.Dario Nieuwenhuis2022-07-211-1/+26
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-47/+19
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-2/+2
| | | | | | - 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`.
* Add saadc::VddhDiv5Inputalexmoon2022-04-081-0/+23
|
* Simplifies the API by taking in the TIMER and PPI channelshuntc2022-03-071-39/+53
|
* Improve nRF Saadc samplinghuntc2022-03-071-7/+76
| | | | | | | | | | Starting the sampling task prior to starting the SAADC peripheral can lead to unexpected buffer behaviour with multiple channels. We now provide an init callback at the point where the SAADC has started for the first time. This callback can be used to kick off sampling via PPI. We also need to trigger the SAADC to start sampling the next buffer when the previous one is ended so that we do not drop samples - the major benefit of double buffering. As a bonus we provide a calibrate method as it is recommended to use before starting up the sampling. The example has been updated to illustrate these new features.
* Some documentation corrections and expansionhuntc2021-11-221-1/+1
|
* nrf: saadc do not reexport pac enumsJacob Rosenthal2021-11-201-10/+188
| | | | Closes #415
* nrf91: support running in both S and NS mode.Dario Nieuwenhuis2021-10-261-2/+2
|
* nrf: saadc dummy pin for vdd samplingJacob Rosenthal2021-10-241-0/+23
|
* Formattinghuntc2021-10-181-3/+1
|
* Optimises the buffer passing for nRF SAADChuntc2021-10-181-1/+1
| | | | The buffer will always have been filled and we never explicitly stop the task outside of this code. Thus, we can assume the number of bytes in the slice.
* Comments correctedhuntc2021-10-181-5/+4
|
* Renamed sample rate to what it actually ishuntc2021-10-181-4/+4
|
* Remove unneeded stophuntc2021-10-181-1/+0
|
* Ensure the compiler doesn't reorder things before calling the samplerhuntc2021-10-181-0/+2
|