Skip to content

Commit 9db7dfc

Browse files
committed
Support vddhdiv5 only on 52833 and 52840
1 parent 84f5dee commit 9db7dfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nrf-hal-common/src/saadc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ where
178178
7 => self.0.ch[0].pselp.write(|w| w.pselp().analog_input7()),
179179
#[cfg(not(feature = "9160"))]
180180
8 => self.0.ch[0].pselp.write(|w| w.pselp().vdd()),
181-
#[cfg(not(feature = "9160"))]
181+
#[cfg(any(feature = "52833", feature = "52840"))]
182182
13 => self.0.ch[0].pselp.write(|w| w.pselp().vddhdiv5()),
183183
// This can never happen the only analog pins have already been defined
184184
// PAY CLOSE ATTENTION TO ANY CHANGES TO THIS IMPL OR THE `channel_mappings!` MACRO
@@ -268,7 +268,7 @@ impl Channel<Saadc> for InternalVdd {
268268
/// Channel that doesn't sample a pin, but the internal VDD voltage.
269269
pub struct InternalVdd;
270270

271-
#[cfg(not(feature = "9160"))]
271+
#[cfg(any(feature = "52833", feature = "52840"))]
272272
impl Channel<Saadc> for InternalVddHdiv5 {
273273
type ID = u8;
274274

@@ -277,6 +277,6 @@ impl Channel<Saadc> for InternalVddHdiv5 {
277277
}
278278
}
279279

280-
#[cfg(not(feature = "9160"))]
280+
#[cfg(any(feature = "52833", feature = "52840"))]
281281
/// Channel that doesn't sample a pin, but the internal VDD voltage.
282282
pub struct InternalVddHdiv5;

0 commit comments

Comments
 (0)