File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ fn main() -> ! {
14
14
let dp = pac:: Peripherals :: take ( ) . unwrap ( ) ;
15
15
16
16
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) ;
18
18
19
19
// constructor initializes 48 MHz clock that RNG requires
20
20
// Initialize 48 MHz clock and RNG
@@ -31,4 +31,4 @@ fn main() -> ! {
31
31
// can save some power by disabling until next random number needed
32
32
rng. disable ( ) ;
33
33
}
34
- }
34
+ }
Original file line number Diff line number Diff line change @@ -201,8 +201,8 @@ impl Rcc {
201
201
// Enable VREFINT reference for HSI48 oscillator
202
202
syscfg. syscfg . cfgr3 . modify ( |_, w|
203
203
w
204
- . enref_rc48mhz ( ) . set_bit ( )
205
- . en_bgap ( ) . set_bit ( )
204
+ . enref_hsi48 ( ) . set_bit ( )
205
+ . en_vrefint ( ) . set_bit ( )
206
206
) ;
207
207
208
208
// Select HSI48 as USB clock
You can’t perform that action at this time.
0 commit comments