File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ mod utils;
77extern crate cortex_m_rt as rt;
88
99use rt:: entry;
10- use stm32g4xx_hal :: observable :: Observable ;
10+ use proto_hal :: stasis :: Freeze ;
1111
1212#[ entry]
1313fn main ( ) -> ! {
@@ -31,7 +31,7 @@ fn main() -> ! {
3131 // which just so happens is compatible with comp1
3232 let dac1ch1 = dp. DAC1 . constrain ( ( gpioa. pa4 , Dac1IntSig1 ) , & mut rcc) ;
3333 let dac = dac1ch1. calibrate_buffer ( & mut delay) . enable ( ) ;
34- let ( mut dac, [ dac_token] ) = dac. observe ( ) ;
34+ let ( mut dac, [ dac_token] ) = dac. freeze ( ) ;
3535
3636 let ( comp1, _comp2, ..) = dp. COMP . split ( & mut rcc) ;
3737 let pa1 = gpioa. pa1 . into_analog ( ) ;
Original file line number Diff line number Diff line change 1- //! ## Origin
2- //!
3- //! This code has been taken from the stm32g0xx-hal project and modified slightly to support
4- //! STM32G4xx MCUs.
5-
61//#![deny(warnings)]
72#![ deny( unsafe_code) ]
83#![ no_main]
You can’t perform that action at this time.
0 commit comments