Skip to content

Commit 5d3a6e0

Browse files
committed
comp and pwm mods exclude totally
1 parent c817889 commit 5d3a6e0

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

nrf-hal-common/src/comp.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ macro_rules! comp_ref_pins {
284284
};
285285
}
286286

287-
#[cfg(not(any(feature = "52805")))]
288287
comp_ref_pins! {
289288
P0_02<Input<Floating>> => EXTREFSEL_A::ANALOG_REFERENCE0,
290289
P0_03<Input<Floating>> => EXTREFSEL_A::ANALOG_REFERENCE1,
@@ -296,7 +295,7 @@ comp_ref_pins! {
296295
P0_31<Input<Floating>> => EXTREFSEL_A::ANALOG_REFERENCE7,
297296
}
298297

299-
#[cfg(not(any(feature = "52811", feature = "52810", feature = "52805")))]
298+
#[cfg(not(any(feature = "52811", feature = "52810")))]
300299
comp_input_pins! {
301300
P0_02<Input<Floating>> => PSEL_A::ANALOG_INPUT0,
302301
P0_03<Input<Floating>> => PSEL_A::ANALOG_INPUT1,

nrf-hal-common/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub mod ccm;
4343
pub mod clocks;
4444
#[cfg(not(any(
4545
feature = "51",
46+
feature = "52805",
4647
feature = "9160",
4748
feature = "5340-app",
4849
feature = "5340-net"
@@ -78,7 +79,7 @@ pub mod lpcomp;
7879
pub mod nvmc;
7980
#[cfg(not(any(feature = "9160", feature = "5340-app", feature = "5340-net")))]
8081
pub mod ppi;
81-
#[cfg(not(any(feature = "51", feature = "5340-net")))]
82+
#[cfg(not(any(feature = "51", feature = "52805", feature = "5340-net")))]
8283
pub mod pwm;
8384
#[cfg(not(any(
8485
feature = "51",

nrf-hal-common/src/pwm.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! The pulse with modulation (PWM) module enables the generation of pulse width modulated signals on GPIO.
44
5-
#[cfg(not(any(feature = "52805", feature = "9160", feature = "5340-app")))]
5+
#[cfg(not(any(feature = "9160", feature = "5340-app")))]
66
use crate::pac::pwm0::*;
77
#[cfg(any(feature = "9160", feature = "5340-app"))]
88
use crate::pac::pwm0_ns::*;
@@ -1155,14 +1155,14 @@ pub trait Instance: sealed::Sealed + Deref<Target = RegisterBlock> {
11551155

11561156
// Internal static duty buffers. One per instance.
11571157
static mut BUF0: Cell<[u16; 4]> = Cell::new([0; 4]);
1158-
#[cfg(not(any(feature = "52805", feature = "52810", feature = "52811")))]
1158+
#[cfg(not(any(feature = "52810", feature = "52811")))]
11591159
static mut BUF1: Cell<[u16; 4]> = Cell::new([0; 4]);
1160-
#[cfg(not(any(feature = "52805", feature = "52810", feature = "52811")))]
1160+
#[cfg(not(any(feature = "52810", feature = "52811")))]
11611161
static mut BUF2: Cell<[u16; 4]> = Cell::new([0; 4]);
1162-
#[cfg(not(any(feature = "52805", feature = "52810", feature = "52811", feature = "52832")))]
1162+
#[cfg(not(any(feature = "52810", feature = "52811", feature = "52832")))]
11631163
static mut BUF3: Cell<[u16; 4]> = Cell::new([0; 4]);
11641164

1165-
#[cfg(not(any(feature = "52805", feature = "9160", feature = "5340-app")))]
1165+
#[cfg(not(any(feature = "9160", feature = "5340-app")))]
11661166
impl Instance for crate::pac::PWM0 {
11671167
const INTERRUPT: Interrupt = Interrupt::PWM0;
11681168
#[inline(always)]
@@ -1172,7 +1172,6 @@ impl Instance for crate::pac::PWM0 {
11721172
}
11731173

11741174
#[cfg(not(any(
1175-
feature = "52805",
11761175
feature = "52810",
11771176
feature = "52811",
11781177
feature = "9160",
@@ -1186,7 +1185,6 @@ impl Instance for crate::pac::PWM1 {
11861185
}
11871186

11881187
#[cfg(not(any(
1189-
feature = "52805",
11901188
feature = "52810",
11911189
feature = "52811",
11921190
feature = "9160",
@@ -1200,7 +1198,6 @@ impl Instance for crate::pac::PWM2 {
12001198
}
12011199

12021200
#[cfg(not(any(
1203-
feature = "52805",
12041201
feature = "52810",
12051202
feature = "52811",
12061203
feature = "52832",
@@ -1253,7 +1250,6 @@ mod sealed {
12531250
impl Sealed for crate::pac::PWM0 {}
12541251

12551252
#[cfg(not(any(
1256-
feature = "52805",
12571253
feature = "52810",
12581254
feature = "52811",
12591255
feature = "5340-app",
@@ -1262,7 +1258,6 @@ mod sealed {
12621258
impl Sealed for crate::pac::PWM1 {}
12631259

12641260
#[cfg(not(any(
1265-
feature = "52805",
12661261
feature = "52810",
12671262
feature = "52811",
12681263
feature = "5340-app",
@@ -1271,7 +1266,6 @@ mod sealed {
12711266
impl Sealed for crate::pac::PWM2 {}
12721267

12731268
#[cfg(not(any(
1274-
feature = "52805",
12751269
feature = "52810",
12761270
feature = "52811",
12771271
feature = "52832",

0 commit comments

Comments
 (0)