Skip to content

Commit 5a826df

Browse files
committed
Update cfg's
1 parent 66fd342 commit 5a826df

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub mod ledc;
4444
not(feature = "riscv-ulp-hal")
4545
))]
4646
pub mod mac;
47-
#[cfg(any(esp32, esp32s3))]
47+
#[cfg(all(any(esp32, esp32s3), not(feature = "riscv-ulp-hal")))]
4848
pub mod mcpwm;
4949
#[cfg(not(feature = "riscv-ulp-hal"))]
5050
pub mod modem;

src/mcpwm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(all(any(esp32, esp32s3), not(feature = "riscv-ulp-hal")))]
2+
13
//! Motor Control Pulse Width Modulator peripheral
24
//!
35
//! Interface to the [Motor Control Pulse Width Modulator peripheral (MCPWM)

src/peripherals.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::ledc;
1111
not(feature = "riscv-ulp-hal")
1212
))]
1313
use crate::mac;
14-
#[cfg(any(esp32, esp32s3))]
14+
#[cfg(all(any(esp32, esp32s3), not(feature = "riscv-ulp-hal")))]
1515
use crate::mcpwm;
1616
#[cfg(not(feature = "riscv-ulp-hal"))]
1717
use crate::modem;
@@ -59,9 +59,9 @@ pub struct Peripherals {
5959
pub ledc: ledc::LEDC,
6060
=======
6161
pub ledc: ledc::Peripheral,
62-
#[cfg(any(esp32, esp32s3))]
62+
#[cfg(all(any(esp32, esp32s3), not(feature = "riscv-ulp-hal")))]
6363
pub mcpwm0: mcpwm::Peripheral<mcpwm::UnitZero>,
64-
#[cfg(any(esp32, esp32s3))]
64+
#[cfg(all(any(esp32, esp32s3), not(feature = "riscv-ulp-hal")))]
6565
pub mcpwm1: mcpwm::Peripheral<mcpwm::UnitOne>,
6666
>>>>>>> The beginning of a first rough draft...
6767
#[cfg(not(feature = "riscv-ulp-hal"))]

0 commit comments

Comments
 (0)