File tree Expand file tree Collapse file tree 13 files changed +13
-13
lines changed Expand file tree Collapse file tree 13 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ fn main() -> ! {
22
22
23
23
// Constrain and Freeze clock
24
24
let rcc = dp. RCC . constrain ( ) ;
25
- let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
25
+ let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
26
26
27
27
let gpioa = dp. GPIOA . split ( ccdr. peripheral . GPIOA ) ;
28
28
let mut led = gpioa. pa5 . into_push_pull_output ( ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() -> ! {
24
24
25
25
// Constrain and Freeze clock
26
26
let rcc = dp. RCC . constrain ( ) ;
27
- let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
27
+ let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
28
28
29
29
let channels = dp. GPDMA1 . channels ( ccdr. peripheral . GPDMA1 ) ;
30
30
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() -> ! {
28
28
// Constrain and Freeze clock
29
29
info ! ( "Setup RCC... " ) ;
30
30
let rcc = dp. RCC . constrain ( ) ;
31
- let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
31
+ let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
32
32
33
33
let gpioa = dp. GPIOA . split ( ccdr. peripheral . GPIOA ) ;
34
34
let mut led = gpioa. pa5 . into_push_pull_output ( ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ fn main() -> ! {
31
31
. pll2_r_ck ( 3_024_000 . Hz ( ) )
32
32
// pll2_p / 2 --> mco2
33
33
. mco2_from_pll2_p_ck ( 7 . MHz ( ) )
34
- . freeze ( pwrcfg, & dp. SBS ) ;
34
+ . freeze ( & pwrcfg, & dp. SBS ) ;
35
35
36
36
// // Enable MCO2 output pin
37
37
// let gpioc = dp.GPIOC.split(ccdr.peripheral.GPIOC);
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn main() -> ! {
27
27
// Constrain and Freeze clock
28
28
info ! ( "Setup RCC... " ) ;
29
29
let rcc = dp. RCC . constrain ( ) ;
30
- let ccdr = rcc. sys_ck ( 100 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
30
+ let ccdr = rcc. sys_ck ( 100 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
31
31
32
32
let gpiob = dp. GPIOB . split ( ccdr. peripheral . GPIOB ) ;
33
33
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() -> ! {
28
28
// Constrain and Freeze clock
29
29
info ! ( "Setup RCC... " ) ;
30
30
let rcc = dp. RCC . constrain ( ) ;
31
- let ccdr = rcc. sys_ck ( 100 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
31
+ let ccdr = rcc. sys_ck ( 100 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
32
32
33
33
let gpiob = dp. GPIOB . split ( ccdr. peripheral . GPIOB ) ;
34
34
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() -> ! {
28
28
// Constrain and Freeze clock
29
29
info ! ( "Setup RCC... " ) ;
30
30
let rcc = dp. RCC . constrain ( ) ;
31
- let ccdr = rcc. sys_ck ( 100 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
31
+ let ccdr = rcc. sys_ck ( 100 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
32
32
33
33
let gpiob = dp. GPIOB . split ( ccdr. peripheral . GPIOB ) ;
34
34
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fn main() -> ! {
24
24
// Constrain and Freeze clock
25
25
info ! ( "Setup RCC... " ) ;
26
26
let rcc = dp. RCC . constrain ( ) ;
27
- let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( pwrcfg, & dp. SBS ) ;
27
+ let ccdr = rcc. sys_ck ( 250 . MHz ( ) ) . freeze ( & pwrcfg, & dp. SBS ) ;
28
28
29
29
info ! ( "" ) ;
30
30
info ! ( "stm32h5xx-hal example - RCC" ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() -> ! {
28
28
let ccdr = rcc
29
29
. sys_ck ( 192 . MHz ( ) )
30
30
. pll1_q_ck ( 64 . MHz ( ) )
31
- . freeze ( pwrcfg, & dp. SBS ) ;
31
+ . freeze ( & pwrcfg, & dp. SBS ) ;
32
32
33
33
// Acquire the GPIOB peripheral. This also enables the clock for
34
34
// GPIOB in the RCC register.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ fn main() -> ! {
37
37
let ccdr = rcc
38
38
. sys_ck ( 192 . MHz ( ) )
39
39
. pll1_q_ck ( 64 . MHz ( ) )
40
- . freeze ( pwrcfg, & dp. SBS ) ;
40
+ . freeze ( & pwrcfg, & dp. SBS ) ;
41
41
42
42
// Acquire the GPIOB peripheral. This also enables the clock for
43
43
// GPIOB in the RCC register.
You can’t perform that action at this time.
0 commit comments