From c675fb1036c18cbbfc714734888eececc0f7beb1 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 13 Oct 2021 22:01:49 +0200 Subject: [PATCH] nrf/saadc: make InputChannel private. --- embassy-nrf/src/saadc.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index c2787e02..94744c44 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs @@ -14,11 +14,11 @@ use crate::{pac, peripherals}; use pac::{saadc, SAADC}; +// We treat the positive and negative channels with the same enum values to keep our type tidy and given they are the same +pub(crate) use saadc::ch::pselp::PSELP_A as InputChannel; + pub use saadc::{ - ch::{ - config::{GAIN_A as Gain, REFSEL_A as Reference, RESP_A as Resistor, TACQ_A as Time}, - 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 - }, + ch::config::{GAIN_A as Gain, REFSEL_A as Reference, RESP_A as Resistor, TACQ_A as Time}, oversample::OVERSAMPLE_A as Oversample, resolution::VAL_A as Resolution, };