File tree Expand file tree Collapse file tree 5 files changed +0
-15
lines changed Expand file tree Collapse file tree 5 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,7 @@ fn main() -> ! {
39
39
// Configure PB2 as input.
40
40
let button = gpiob. pb2 . into_pull_up_input ( ) ;
41
41
42
- #[ cfg( feature = "stm32l0x1" ) ]
43
42
let mut syscfg = SYSCFG :: new ( dp. SYSCFG , & mut rcc) ;
44
- #[ cfg( any( feature = "stm32l0x2" , feature = "stm32l0x3" ) ) ]
45
- let mut syscfg = SYSCFG :: new ( dp. SYSCFG_COMP , & mut rcc) ;
46
43
47
44
// Configure the external interrupt on the falling edge for the pin 0.
48
45
let exti = dp. EXTI ;
Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ const APP: () = {
28
28
// Configure PB2 as input.
29
29
let button = gpiob. pb2 . into_pull_up_input ( ) ;
30
30
31
- #[ cfg( feature = "stm32l0x1" ) ]
32
31
let mut syscfg = SYSCFG :: new ( device. SYSCFG , & mut rcc) ;
33
- #[ cfg( any( feature = "stm32l0x2" , feature = "stm32l0x3" ) ) ]
34
- let mut syscfg = SYSCFG :: new ( device. SYSCFG_COMP , & mut rcc) ;
35
32
36
33
// Configure the external interrupt on the falling edge for the pin 0.
37
34
let exti = device. EXTI ;
Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ fn main() -> ! {
29
29
let button = gpiob. pb2 . into_floating_input ( ) ;
30
30
let mut led = gpiob. pb6 . into_push_pull_output ( ) ;
31
31
32
- #[ cfg( feature = "stm32l0x1" ) ]
33
32
let mut syscfg = SYSCFG :: new ( dp. SYSCFG , & mut rcc) ;
34
- #[ cfg( any( feature = "stm32l0x2" , feature = "stm32l0x3" ) ) ]
35
- let mut syscfg = SYSCFG :: new ( dp. SYSCFG_COMP , & mut rcc) ;
36
33
37
34
exti. listen (
38
35
& mut syscfg,
Original file line number Diff line number Diff line change @@ -44,10 +44,7 @@ fn main() -> ! {
44
44
45
45
let mut led = gpiob. pb2 . into_push_pull_output ( ) . downgrade ( ) ;
46
46
47
- #[ cfg( feature = "stm32l0x1" ) ]
48
47
let mut syscfg = SYSCFG :: new ( dp. SYSCFG , & mut rcc) ;
49
- #[ cfg( any( feature = "stm32l0x2" , feature = "stm32l0x3" ) ) ]
50
- let mut syscfg = SYSCFG :: new ( dp. SYSCFG_COMP , & mut rcc) ;
51
48
52
49
let instant = Instant :: new ( )
53
50
. set_year ( 19 )
Original file line number Diff line number Diff line change @@ -32,10 +32,7 @@ fn main() -> ! {
32
32
let mut exti = dp. EXTI ;
33
33
let mut pwr = PWR :: new ( dp. PWR , & mut rcc) ;
34
34
35
- #[ cfg( feature = "stm32l0x1" ) ]
36
35
let mut syscfg = SYSCFG :: new ( dp. SYSCFG , & mut rcc) ;
37
- #[ cfg( any( feature = "stm32l0x2" , feature = "stm32l0x3" ) ) ]
38
- let mut syscfg = SYSCFG :: new ( dp. SYSCFG_COMP , & mut rcc) ;
39
36
40
37
let instant = Instant :: new ( )
41
38
. set_year ( 19 )
You can’t perform that action at this time.
0 commit comments