File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ mod app {
39
39
timer. listen ( ) ;
40
40
41
41
let mut exti = ctx. device . EXTI ;
42
- gpioa. pa2 . into_pull_up_input ( ) . listen ( SignalEdge :: Falling , & mut exti) ;
42
+ gpioa
43
+ . pa2
44
+ . into_pull_up_input ( )
45
+ . listen ( SignalEdge :: Falling , & mut exti) ;
43
46
44
47
let mut rtc = ctx. device . RTC . constrain ( & mut rcc) ;
45
48
rtc. set_date ( & Date :: new ( 2019 . year ( ) , 11 . month ( ) , 24 . day ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ mod app {
34
34
35
35
let gpioa = ctx. device . GPIOA . split ( & mut rcc) ;
36
36
let led = gpioa. pa15 . into_push_pull_output ( ) ;
37
- let mut button = gpioa. pa2 . into_pull_up_input ( ) . listen ( SignalEdge :: Falling , & mut exti) ;
37
+ let mut button = gpioa
38
+ . pa2
39
+ . into_pull_up_input ( )
40
+ . listen ( SignalEdge :: Falling , & mut exti) ;
38
41
39
42
let mut power = ctx. device . PWR . constrain ( & mut rcc) ;
40
43
power. set_mode ( PowerMode :: UltraLowPower ( LowPowerMode :: StopMode2 ) ) ;
You can’t perform that action at this time.
0 commit comments