File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub mod i2c;
3838#[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
3939pub mod interrupt;
4040pub mod ledc;
41- #[ cfg( any( esp32, esp32s3) ) ]
41+ #[ cfg( all ( any( esp32, esp32s3) , not ( feature = "riscv-ulp-hal" ) ) ) ]
4242pub mod mcpwm;
4343#[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
4444pub mod mutex;
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::hall;
1414use crate :: i2c;
1515#[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
1616use crate :: ledc;
17- #[ cfg( any( esp32, esp32s3) ) ]
17+ #[ cfg( all ( any( esp32, esp32s3) , not ( feature = "riscv-ulp-hal" ) ) ) ]
1818use crate :: mcpwm;
1919#[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
2020use crate :: rmt;
@@ -55,9 +55,9 @@ pub struct Peripherals {
5555 pub can : can:: CAN ,
5656 #[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
5757 pub ledc : ledc:: Peripheral ,
58- #[ cfg( any( esp32, esp32s3) ) ]
58+ #[ cfg( all ( any( esp32, esp32s3) , not ( feature = "riscv-ulp-hal" ) ) ) ]
5959 pub mcpwm0 : mcpwm:: Peripheral < mcpwm:: UnitZero > ,
60- #[ cfg( any( esp32, esp32s3) ) ]
60+ #[ cfg( all ( any( esp32, esp32s3) , not ( feature = "riscv-ulp-hal" ) ) ) ]
6161 pub mcpwm1 : mcpwm:: Peripheral < mcpwm:: UnitOne > ,
6262 #[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
6363 pub rmt : rmt:: Peripheral ,
You can’t perform that action at this time.
0 commit comments