Skip to content

Commit a9c3c0b

Browse files
whack
1 parent 2e932f2 commit a9c3c0b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ pub use crate::stm32::interrupt;
8787
pub mod adc;
8888
#[cfg(feature = "device-selected")]
8989
pub mod bb;
90-
#[cfg(all(feature = "device-selected", not(any(feature = "stm32f411",))))]
90+
#[cfg(all(
91+
feature = "device-selected",
92+
not(any(feature = "stm32f411", feature = "stm32f412",))
93+
))]
9194
pub mod dac;
9295
#[cfg(feature = "device-selected")]
9396
pub mod delay;

src/prelude.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ pub use embedded_hal::digital::v2::StatefulOutputPin as _embedded_hal_digital_v2
44
pub use embedded_hal::digital::v2::ToggleableOutputPin as _embedded_hal_digital_v2_ToggleableOutputPin;
55
pub use embedded_hal::prelude::*;
66

7+
#[cfg(all(
8+
feature = "device-selected",
9+
not(any(feature = "stm32f411", feature = "stm32f412",))
10+
))]
11+
pub use crate::dac::DacExt as _stm32f4xx_hal_dac_DacExt;
712
pub use crate::gpio::GpioExt as _stm32f4xx_hal_gpio_GpioExt;
813
pub use crate::i2c::Pins as _stm32f4xx_hal_i2c_Pins;
914
pub use crate::rcc::RccExt as _stm32f4xx_hal_rcc_RccExt;
@@ -18,4 +23,3 @@ pub use crate::rcc::RccExt as _stm32f4xx_hal_rcc_RccExt;
1823
))]
1924
pub use crate::rng::RngExt as _stm32f4xx_hal_rng_RngExt;
2025
pub use crate::time::U32Ext as _stm32f4xx_hal_time_U32Ext;
21-
pub use crate::dac::DacExt as _stm32f4xx_hal_dac_DacExt;

0 commit comments

Comments
 (0)