We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab85cd6 commit a0ef93eCopy full SHA for a0ef93e
examples/rng.rs
@@ -42,14 +42,23 @@ fn main() -> ! {
42
.cfgr
43
// needed for RNG
44
.clk48_source({
45
- if cfg!(any(
+ #[cfg(any(
46
feature = "stm32l476",
47
feature = "stm32l486",
48
feature = "stm32l496",
49
feature = "stm32l4a6"
50
- )) {
+ ))]
51
+ {
52
Clk48Source::Hsi48
- } else {
53
+ }
54
+
55
+ #[cfg(not(any(
56
+ feature = "stm32l476",
57
+ feature = "stm32l486",
58
+ feature = "stm32l496",
59
+ feature = "stm32l4a6"
60
+ )))]
61
62
Clk48Source::Msi
63
}
64
})
0 commit comments