Skip to content

Commit

Permalink
whack
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobrosenthal committed Jun 28, 2020
1 parent 2e932f2 commit a9c3c0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ pub use crate::stm32::interrupt;
pub mod adc;
#[cfg(feature = "device-selected")]
pub mod bb;
#[cfg(all(feature = "device-selected", not(any(feature = "stm32f411",))))]
#[cfg(all(
feature = "device-selected",
not(any(feature = "stm32f411", feature = "stm32f412",))
))]
pub mod dac;
#[cfg(feature = "device-selected")]
pub mod delay;
Expand Down
6 changes: 5 additions & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ pub use embedded_hal::digital::v2::StatefulOutputPin as _embedded_hal_digital_v2
pub use embedded_hal::digital::v2::ToggleableOutputPin as _embedded_hal_digital_v2_ToggleableOutputPin;
pub use embedded_hal::prelude::*;

#[cfg(all(
feature = "device-selected",
not(any(feature = "stm32f411", feature = "stm32f412",))
))]
pub use crate::dac::DacExt as _stm32f4xx_hal_dac_DacExt;
pub use crate::gpio::GpioExt as _stm32f4xx_hal_gpio_GpioExt;
pub use crate::i2c::Pins as _stm32f4xx_hal_i2c_Pins;
pub use crate::rcc::RccExt as _stm32f4xx_hal_rcc_RccExt;
Expand All @@ -18,4 +23,3 @@ pub use crate::rcc::RccExt as _stm32f4xx_hal_rcc_RccExt;
))]
pub use crate::rng::RngExt as _stm32f4xx_hal_rng_RngExt;
pub use crate::time::U32Ext as _stm32f4xx_hal_time_U32Ext;
pub use crate::dac::DacExt as _stm32f4xx_hal_dac_DacExt;

0 comments on commit a9c3c0b

Please sign in to comment.