File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ paste = "1.0"
18
18
bitflags = " 1.2"
19
19
vcell = " 0.1"
20
20
static_assertions = " 1.1"
21
- fugit = " 0.3.5 "
21
+ fugit = " 0.3.7 "
22
22
stm32-usbd = { version = " 0.7.0" , optional = true }
23
23
fixed = { version = " 1.28.0" , optional = true }
24
24
@@ -93,7 +93,7 @@ stm32g4a1 = ["stm32g4/stm32g4a1"]
93
93
log-itm = [" cortex-m-log/itm" ]
94
94
log-rtt = []
95
95
log-semihost = [" cortex-m-log/semihosting" ]
96
- defmt-logging = [" defmt" ]
96
+ defmt = [" dep:defmt " , " fugit/ defmt" ]
97
97
cordic = [" dep:fixed" ]
98
98
99
99
[profile .dev ]
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub const HSI_FREQ: u32 = 16_000_000;
16
16
17
17
/// Clock frequencies
18
18
#[ derive( Clone , Copy , Debug ) ]
19
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
19
20
pub struct Clocks {
20
21
/// System frequency
21
22
pub sys_clk : Hertz ,
@@ -37,6 +38,7 @@ pub struct Clocks {
37
38
38
39
/// PLL Clock frequencies
39
40
#[ derive( Clone , Copy , Debug ) ]
41
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
40
42
pub struct PLLClocks {
41
43
/// R frequency
42
44
pub r : Option < Hertz > ,
You can’t perform that action at this time.
0 commit comments