aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/saadc.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename examples/nrf to examples/nrf52840Dominik Boehi2023-01-091-25/+0
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-181-2/+2
|
* Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-171-2/+3
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-3/+3
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-3/+1
|
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-021-3/+4
|
* Fix interrupt_take macro by specifying path to panic macro.Matous Hybl2021-11-231-1/+0
|
* Implements continuous sampling for the nRF SAADChuntc2021-10-181-2/+2
| | | | | | Implements continuous sampling for the nRF SAADC and also renames `OneShot` to `Saadc`. The one-shot behaviour is retained with the `sample` method and a new `run_sampler` method is provided for efficiently (i.e. zero copying) sampler processing. A double buffer is used for continuously sampling, which wlll be swapped once sampling has taken place. A sample frequency is provided and will set the internal timer of the SAADC when there is just the one channel being sampled. Otherwise, PPI will be used to hook up the TIMER peripheral to drive the sampling task.
* Extend SAADC one shot supporthuntc2021-10-091-4/+6
| | | | | | | | One-shot mode now permits the sampling of differential pins, and the sampling of multiple pins simultaneously. A new ChannelConfig structure has been introduced so that multiple channels can be configured individually. Further, the `sample` method now accepts a buffer into which samples are written. Along the way, I've reset some default configuration to align with Nordic's settings in their nrfx saadc driver. Specifically, the channel gain defaults to 6 (from 4) and the time defaults to 10us (from 20us).
* nrf/saadc: remove Sample trait.Dario Nieuwenhuis2021-10-071-1/+1
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-031-1/+0
| | | | trait_alias seems unused. no idea why it's there.
* nrf/saadc: add exampleDario Nieuwenhuis2021-09-011-0/+25