embassy/examples/nrf
huntc 98bdac51fe Improve nRF Saadc sampling
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.
2022-03-07 14:51:17 +11:00
..
.cargo Replace rustflags with build.rs extra-link-args. 2021-11-07 23:52:11 +01:00
src Improve nRF Saadc sampling 2022-03-07 14:51:17 +11:00
build.rs Replace rustflags with build.rs extra-link-args. 2021-11-07 23:52:11 +01:00
Cargo.toml embassy, embassy-nrf: add nightly Cargo feature to gate nightly-only features. 2022-02-12 01:16:31 +01:00
memory.x Move examples to a subdirectory 2021-06-02 01:32:19 +02:00