Skip to content

Commit

Permalink
Add traits to prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
stabler committed Jan 4, 2024
1 parent b752b17 commit 285c66f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions examples/opamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@

use stm32g4xx_hal::adc::AdcClaim;
use stm32g4xx_hal::adc::ClockSource;
use stm32g4xx_hal::opamp::InternalOutput;
use stm32g4xx_hal::opamp::{
IntoFollower, IntoOpenLoop, IntoPga, NonInvertingGain, PgaModeInternal,
};
use stm32g4xx_hal::opamp::{InternalOutput, NonInvertingGain, PgaModeInternal};
use stm32g4xx_hal::prelude::*;
use stm32g4xx_hal::pwr::PwrExt;

Expand Down
3 changes: 3 additions & 0 deletions src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ pub use crate::delay::SYSTDelayExt as _;
pub use crate::exti::ExtiExt as _;
pub use crate::gpio::GpioExt as _;
pub use crate::i2c::I2cExt as _;
pub use crate::opamp::IntoFollower as _;
pub use crate::opamp::IntoOpenLoop as _;
pub use crate::opamp::IntoPga as _;
pub use crate::opamp::OpampEx as _;
pub use crate::rcc::LSCOExt as _;
pub use crate::rcc::MCOExt as _;
Expand Down

0 comments on commit 285c66f

Please sign in to comment.