File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ pub trait HrCapture {
86
86
///
87
87
/// where captures during down counting count as negative (before the upcount)
88
88
///
89
- /// ```txt
89
+ /// ```text
90
90
/// Counter
91
91
/// ---------------------------------- <--- period
92
92
/// \ ^ /
@@ -117,7 +117,7 @@ pub trait HrCapture {
117
117
///
118
118
/// where captures during down counting count as negative (before the upcount)
119
119
///
120
- /// ```
120
+ /// ```text
121
121
/// Counter
122
122
/// ---------------------------------- <--- period
123
123
/// \ ^ /
Original file line number Diff line number Diff line change @@ -19,18 +19,19 @@ impl HrControltExt for HRTIM_COMMON {
19
19
let common = unsafe { & * HRTIM_COMMON :: ptr ( ) } ;
20
20
21
21
let rcc_ptr = {
22
- #[ cfg( feature = "stm32g4" ) ] unsafe {
22
+ #[ cfg( feature = "stm32g4" ) ]
23
+ unsafe {
23
24
& * stm32:: RCC :: ptr ( )
24
25
}
25
26
26
- #[ cfg( feature = "stm32f3" ) ] {
27
+ #[ cfg( feature = "stm32f3" ) ]
28
+ {
27
29
& mut rcc. apb2
28
30
}
29
31
} ;
30
32
31
33
<HRTIM_COMMON as Enable >:: enable ( rcc_ptr) ;
32
34
<HRTIM_COMMON as Reset >:: reset ( rcc_ptr) ;
33
-
34
35
35
36
// Start calibration procedure
36
37
common
You can’t perform that action at this time.
0 commit comments