diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-10-13 22:01:49 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-10-13 22:13:30 +0200 |
| commit | c675fb1036c18cbbfc714734888eececc0f7beb1 (patch) | |
| tree | 48db1121647dcbb4bef0d2e7bfeb197c4f97a388 | |
| parent | d8c3365d6a78f272a28ee9c2740d4e7543dde474 (diff) | |
nrf/saadc: make InputChannel private.
| -rw-r--r-- | embassy-nrf/src/saadc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index c2787e02b..94744c444 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs | |||
| @@ -14,11 +14,11 @@ use crate::{pac, peripherals}; | |||
| 14 | 14 | ||
| 15 | use pac::{saadc, SAADC}; | 15 | use pac::{saadc, SAADC}; |
| 16 | 16 | ||
| 17 | // We treat the positive and negative channels with the same enum values to keep our type tidy and given they are the same | ||
| 18 | pub(crate) use saadc::ch::pselp::PSELP_A as InputChannel; | ||
| 19 | |||
| 17 | pub use saadc::{ | 20 | pub use saadc::{ |
| 18 | ch::{ | 21 | ch::config::{GAIN_A as Gain, REFSEL_A as Reference, RESP_A as Resistor, TACQ_A as Time}, |
| 19 | config::{GAIN_A as Gain, REFSEL_A as Reference, RESP_A as Resistor, TACQ_A as Time}, | ||
| 20 | pselp::PSELP_A as InputChannel, // We treat the positive and negative channels with the same enum values to keep our type tidy and given they are the same | ||
| 21 | }, | ||
| 22 | oversample::OVERSAMPLE_A as Oversample, | 22 | oversample::OVERSAMPLE_A as Oversample, |
| 23 | resolution::VAL_A as Resolution, | 23 | resolution::VAL_A as Resolution, |
| 24 | }; | 24 | }; |
