Skip to content

Commit 8c80273

Browse files
committed
Update for local stasis
1 parent 8df2caf commit 8c80273

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

examples/comp_w_dac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
mod utils;
77
extern crate cortex_m_rt as rt;
88

9-
use proto_hal::stasis::Freeze;
109
use rt::entry;
1110

1211
#[entry]
@@ -17,6 +16,7 @@ fn main() -> ! {
1716
use hal::gpio::GpioExt;
1817
use hal::rcc::RccExt;
1918
use hal::stm32;
19+
use hal::stasis::Freeze;
2020
use stm32g4xx_hal as hal;
2121

2222
let dp = stm32::Peripherals::take().expect("cannot take peripherals");

examples/observe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use hal::{
1616
rcc::RccExt,
1717
stm32,
1818
};
19-
use proto_hal::stasis::Freeze;
19+
use hal::stasis::Freeze;
2020
use rt::entry;
2121
use stm32g4xx_hal::{self as hal, adc::config::SampleTime, delay::DelayExt as _};
2222

src/adc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use core::fmt;
2222
use core::marker::PhantomData;
2323
use embedded_hal::delay::DelayNs;
2424
use embedded_hal_old::adc::{Channel, OneShot};
25-
use proto_hal::stasis;
25+
use crate::stasis;
2626

2727
use self::config::ExternalTrigger12;
2828

src/comparator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use crate::gpio::gpioe::{PE7, PE8};
3636
use crate::gpio::gpiof::PF1;
3737
use crate::rcc::{Clocks, Rcc};
3838
use crate::stm32::{COMP, EXTI};
39-
use proto_hal::stasis;
39+
use crate::stasis;
4040

4141
/// Enabled Comparator (type state)
4242
pub struct Enabled;
@@ -265,7 +265,7 @@ pub mod refint_input {
265265
const USE_RESISTOR_DIVIDER: bool = $use_r_div;
266266
}
267267

268-
impl proto_hal::stasis::Freeze for $t {}
268+
impl crate::stasis::Freeze for $t {}
269269
};
270270
}
271271

src/dac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ macro_rules! dac_helper {
218218
}
219219
}
220220

221-
impl<const MODE_BITS: u8, ED> proto_hal::stasis::Freeze for $CX<MODE_BITS, ED> { }
221+
impl<const MODE_BITS: u8, ED> crate::stasis::Freeze for $CX<MODE_BITS, ED> { }
222222

223223
impl<const MODE_BITS: u8, ED> $CX<MODE_BITS, ED> {
224224
/// Calibrate the DAC output buffer by performing a "User

src/gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ macro_rules! gpio {
442442
}
443443
}
444444

445-
impl<MODE> proto_hal::stasis::Freeze for $PXi<MODE> { }
445+
impl<MODE> crate::stasis::Freeze for $PXi<MODE> { }
446446

447447
impl<MODE> $PXi<MODE> {
448448
/// Configures the pin to operate as a floating input pin

src/opamp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
// TODO: Add support for calibration
6161

6262
use core::marker::PhantomData;
63-
use proto_hal::stasis;
63+
use crate::stasis;
6464

6565
/// PGA Gain
6666
pub enum Gain {

0 commit comments

Comments
 (0)