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 c4c40f7 commit 5d4a841Copy full SHA for 5d4a841
src/rcc.rs
@@ -1,6 +1,6 @@
1
use core::cmp;
2
3
-#[cfg(feature = "stm32f042")]
+#[cfg(any(feature = "stm32f042", feature = "stm32f030"))]
4
use crate::stm32::{FLASH, RCC};
5
use cast::u32;
6
@@ -12,7 +12,7 @@ pub trait RccExt {
12
fn constrain(self) -> Rcc;
13
}
14
15
16
impl RccExt for RCC {
17
fn constrain(self) -> Rcc {
18
Rcc {
@@ -38,7 +38,7 @@ pub struct CFGR {
38
sysclk: Option<u32>,
39
40
41
42
impl CFGR {
43
pub fn hclk<F>(mut self, freq: F) -> Self
44
where
0 commit comments