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"
1818bitflags = " 1.2"
1919vcell = " 0.1"
2020static_assertions = " 1.1"
21- fugit = " 0.3.5 "
21+ fugit = " 0.3.7 "
2222stm32-usbd = { version = " 0.7.0" , optional = true }
2323fixed = { version = " 1.28.0" , optional = true }
2424
@@ -93,7 +93,7 @@ stm32g4a1 = ["stm32g4/stm32g4a1"]
9393log-itm = [" cortex-m-log/itm" ]
9494log-rtt = []
9595log-semihost = [" cortex-m-log/semihosting" ]
96- defmt-logging = [" defmt" ]
96+ defmt = [" dep:defmt " , " fugit/ defmt" ]
9797cordic = [" dep:fixed" ]
9898
9999[profile .dev ]
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ pub const HSI_FREQ: u32 = 16_000_000;
1616
1717/// Clock frequencies
1818#[ derive( Clone , Copy , Debug ) ]
19+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
1920pub struct Clocks {
2021 /// System frequency
2122 pub sys_clk : Hertz ,
@@ -37,6 +38,7 @@ pub struct Clocks {
3738
3839/// PLL Clock frequencies
3940#[ derive( Clone , Copy , Debug ) ]
41+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
4042pub struct PLLClocks {
4143 /// R frequency
4244 pub r : Option < Hertz > ,
You can’t perform that action at this time.
0 commit comments