Skip to content

Commit d88c045

Browse files
Fix rebase fallout
1 parent c3d97ff commit d88c045

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/rng.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() -> ! {
1414
let dp = pac::Peripherals::take().unwrap();
1515

1616
let mut rcc = dp.RCC.freeze(Config::hsi16());
17-
let mut syscfg = SYSCFG::new(dp.SYSCFG_COMP, &mut rcc);
17+
let mut syscfg = SYSCFG::new(dp.SYSCFG, &mut rcc);
1818

1919
// constructor initializes 48 MHz clock that RNG requires
2020
// Initialize 48 MHz clock and RNG
@@ -31,4 +31,4 @@ fn main() -> ! {
3131
// can save some power by disabling until next random number needed
3232
rng.disable();
3333
}
34-
}
34+
}

src/rcc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ impl Rcc {
201201
// Enable VREFINT reference for HSI48 oscillator
202202
syscfg.syscfg.cfgr3.modify(|_, w|
203203
w
204-
.enref_rc48mhz().set_bit()
205-
.en_bgap().set_bit()
204+
.enref_hsi48().set_bit()
205+
.en_vrefint().set_bit()
206206
);
207207

208208
// Select HSI48 as USB clock

0 commit comments

Comments
 (0)