File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 66mod utils;
77extern crate cortex_m_rt as rt;
88
9- use proto_hal:: stasis:: Freeze ;
109use 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" ) ;
Original file line number Diff line number Diff 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 ;
2020use rt:: entry;
2121use stm32g4xx_hal:: { self as hal, adc:: config:: SampleTime , delay:: DelayExt as _} ;
2222
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use core::fmt;
2222use core:: marker:: PhantomData ;
2323use embedded_hal:: delay:: DelayNs ;
2424use embedded_hal_old:: adc:: { Channel , OneShot } ;
25- use proto_hal :: stasis;
25+ use crate :: stasis;
2626
2727use self :: config:: ExternalTrigger12 ;
2828
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ use crate::gpio::gpioe::{PE7, PE8};
3636use crate :: gpio:: gpiof:: PF1 ;
3737use crate :: rcc:: { Clocks , Rcc } ;
3838use crate :: stm32:: { COMP , EXTI } ;
39- use proto_hal :: stasis;
39+ use crate :: stasis;
4040
4141/// Enabled Comparator (type state)
4242pub 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 6060// TODO: Add support for calibration
6161
6262use core:: marker:: PhantomData ;
63- use proto_hal :: stasis;
63+ use crate :: stasis;
6464
6565/// PGA Gain
6666pub enum Gain {
You can’t perform that action at this time.
0 commit comments