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 @@ -44,7 +44,7 @@ pub mod ledc;
4444 not( feature = "riscv-ulp-hal" )
4545) ) ]
4646pub mod mac;
47- #[ cfg( any( esp32, esp32s3) ) ]
47+ #[ cfg( all ( any( esp32, esp32s3) , not ( feature = "riscv-ulp-hal" ) ) ) ]
4848pub mod mcpwm;
4949#[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
5050pub mod modem;
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 @@ -11,7 +11,7 @@ use crate::ledc;
1111 not( feature = "riscv-ulp-hal" )
1212) ) ]
1313use crate :: mac;
14- #[ cfg( any( esp32, esp32s3) ) ]
14+ #[ cfg( all ( any( esp32, esp32s3) , not ( feature = "riscv-ulp-hal" ) ) ) ]
1515use crate :: mcpwm;
1616#[ cfg( not( feature = "riscv-ulp-hal" ) ) ]
1717use 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" ) ) ]
You can’t perform that action at this time.
0 commit comments