File tree Expand file tree Collapse file tree 8 files changed +20
-26
lines changed Expand file tree Collapse file tree 8 files changed +20
-26
lines changed Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v4
13
13
- uses : dtolnay/rust-toolchain@master
14
14
with :
15
- toolchain : 1.66 .0
15
+ toolchain : 1.74 .0
16
16
target : thumbv7em-none-eabihf
17
17
components : clippy
18
18
- uses : clechasseur/rs-clippy-check@v3
Original file line number Diff line number Diff line change @@ -41,12 +41,10 @@ fn main() -> ! {
41
41
let mut delay = cp. SYST . delay ( ccdr. clocks ) ;
42
42
43
43
loop {
44
- loop {
45
- led. set_high ( ) ;
46
- delay. delay_ms ( 500_u16 ) ;
44
+ led. set_high ( ) ;
45
+ delay. delay_ms ( 500_u16 ) ;
47
46
48
- led. set_low ( ) ;
49
- delay. delay_ms ( 500_u16 ) ;
50
- }
47
+ led. set_low ( ) ;
48
+ delay. delay_ms ( 500_u16 ) ;
51
49
}
52
50
}
Original file line number Diff line number Diff line change @@ -44,15 +44,13 @@ fn main() -> ! {
44
44
let mut delay = cp. SYST . delay ( ccdr. clocks ) ;
45
45
46
46
loop {
47
- loop {
48
- led. set_high ( ) ;
49
- delay. delay_ms ( 100_u16 ) ;
47
+ led. set_high ( ) ;
48
+ delay. delay_ms ( 100_u16 ) ;
50
49
51
- led. set_low ( ) ;
52
- delay. delay_ms ( 100_u16 ) ;
50
+ led. set_low ( ) ;
51
+ delay. delay_ms ( 100_u16 ) ;
53
52
54
- let is_high = led. with_input ( |x| x. is_high ( ) ) ;
55
- info ! ( "LED pin high? {}" , is_high) ;
56
- }
53
+ let is_high = led. with_input ( |x| x. is_high ( ) ) ;
54
+ info ! ( "LED pin high? {}" , is_high) ;
57
55
}
58
56
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn main() -> ! {
36
36
let mut watchdog = IndependentWatchdog :: new ( dp. IWDG2 ) ;
37
37
38
38
// RM0468
39
- #[ cfg( all ( feature = "rm0468" ) ) ]
39
+ #[ cfg( feature = "rm0468" ) ]
40
40
let mut watchdog = IndependentWatchdog :: new ( dp. IWDG1 ) ;
41
41
42
42
info ! ( "" ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ fn main() -> ! {
34
34
let mut watchdog = SystemWindowWatchdog :: new ( dp. WWDG2 , & ccdr) ;
35
35
36
36
// RM0468
37
- #[ cfg( all ( feature = "rm0468" ) ) ]
37
+ #[ cfg( feature = "rm0468" ) ]
38
38
let mut watchdog = SystemWindowWatchdog :: new ( dp. WWDG1 , & ccdr) ;
39
39
40
40
info ! ( "" ) ;
Original file line number Diff line number Diff line change @@ -257,9 +257,7 @@ impl ExtiExt for EXTI {
257
257
let line = ev as u8 ;
258
258
259
259
match line {
260
- 0 ..=19 | 20 | 21 => {
261
- reg_for_cpu ! ( self , pr1) . read ( ) . bits ( ) & ( 1 << line) != 0
262
- }
260
+ 0 ..=21 => reg_for_cpu ! ( self , pr1) . read ( ) . bits ( ) & ( 1 << line) != 0 ,
263
261
49 | 51 => {
264
262
reg_for_cpu ! ( self , pr2) . read ( ) . bits ( ) & ( 1 << ( line - 32 ) ) != 0
265
263
}
@@ -278,7 +276,7 @@ impl ExtiExt for EXTI {
278
276
279
277
unsafe {
280
278
match line {
281
- 0 ..=19 | 20 | 21 => {
279
+ 0 ..=21 => {
282
280
reg_for_cpu ! ( self , pr1) . write ( |w| w. bits ( 1 << line) ) ;
283
281
let _ = reg_for_cpu ! ( self , pr1) . read ( ) ;
284
282
let _ = reg_for_cpu ! ( self , pr1) . read ( ) ; // Delay 2 peripheral clocks
Original file line number Diff line number Diff line change @@ -102,15 +102,15 @@ pub use stm32h7::stm32h743 as stm32;
102
102
pub use stm32h7:: stm32h743v as stm32;
103
103
104
104
// Single core with crypto
105
- #[ cfg( any ( feature = "stm32h753" , ) ) ]
105
+ #[ cfg( feature = "stm32h753" ) ]
106
106
pub use stm32h7:: stm32h753 as stm32;
107
- #[ cfg( any ( feature = "stm32h753v" , ) ) ]
107
+ #[ cfg( feature = "stm32h753v" ) ]
108
108
pub use stm32h7:: stm32h753v as stm32;
109
109
110
110
// Dual core
111
- #[ cfg( any ( feature = "stm32h747cm7" , ) ) ]
111
+ #[ cfg( feature = "stm32h747cm7" ) ]
112
112
pub use stm32h7:: stm32h747cm7 as stm32;
113
- #[ cfg( any ( feature = "stm32h757cm7" , ) ) ]
113
+ #[ cfg( feature = "stm32h757cm7" ) ]
114
114
pub use stm32h7:: stm32h757cm7 as stm32;
115
115
// TODO(rm0399): soundness of PeripheralREC macro in rcc/rec.rs
116
116
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub use crate::timer::HalDisabledLpTimer as _stm32h7xx_hal_timer_HalDisabledLpTi
39
39
pub use crate :: timer:: HalEnabledLpTimer as _stm32h7xx_hal_timer_HalEnabledLpTimer;
40
40
pub use crate :: timer:: HalLpTimer as _stm32h7xx_hal_timer_HalLpTimer;
41
41
pub use crate :: timer:: TimerExt as _stm32h7xx_hal_timer_TimerExt;
42
- #[ cfg( all ( feature = "xspi" ) ) ]
42
+ #[ cfg( feature = "xspi" ) ]
43
43
#[ cfg_attr( docsrs, doc( cfg( feature = "xspi" ) ) ) ]
44
44
pub use crate :: xspi:: XspiExt as _stm32h7xx_hal_xspi_XspiExt;
45
45
pub use fugit:: { ExtU32 as _, RateExtU32 as _} ;
You can’t perform that action at this time.
0 commit comments