Skip to content

Commit 5d4a841

Browse files
Add rcc to stm32f030
1 parent c4c40f7 commit 5d4a841

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rcc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use core::cmp;
22

3-
#[cfg(feature = "stm32f042")]
3+
#[cfg(any(feature = "stm32f042", feature = "stm32f030"))]
44
use crate::stm32::{FLASH, RCC};
55
use cast::u32;
66

@@ -12,7 +12,7 @@ pub trait RccExt {
1212
fn constrain(self) -> Rcc;
1313
}
1414

15-
#[cfg(feature = "stm32f042")]
15+
#[cfg(any(feature = "stm32f042", feature = "stm32f030"))]
1616
impl RccExt for RCC {
1717
fn constrain(self) -> Rcc {
1818
Rcc {
@@ -38,7 +38,7 @@ pub struct CFGR {
3838
sysclk: Option<u32>,
3939
}
4040

41-
#[cfg(feature = "stm32f042")]
41+
#[cfg(any(feature = "stm32f042", feature = "stm32f030"))]
4242
impl CFGR {
4343
pub fn hclk<F>(mut self, freq: F) -> Self
4444
where

0 commit comments

Comments
 (0)