Skip to content

Commit fcfef77

Browse files
committed
Update examples
1 parent a015fd7 commit fcfef77

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

examples/comp_w_dac.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod utils;
77
extern crate cortex_m_rt as rt;
88

99
use rt::entry;
10-
use stm32g4xx_hal::observable::Observable;
10+
use proto_hal::stasis::Freeze;
1111

1212
#[entry]
1313
fn 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();

examples/observe.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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]

0 commit comments

Comments
 (0)