From 5d4a841a46b83cb6b496a5e9d3670ff10bcea2ed Mon Sep 17 00:00:00 2001 From: David Sawatzke Date: Sun, 16 Dec 2018 21:22:15 +0100 Subject: [PATCH] Add rcc to stm32f030 --- src/rcc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcc.rs b/src/rcc.rs index 00300b7..5c9d85d 100644 --- a/src/rcc.rs +++ b/src/rcc.rs @@ -1,6 +1,6 @@ use core::cmp; -#[cfg(feature = "stm32f042")] +#[cfg(any(feature = "stm32f042", feature = "stm32f030"))] use crate::stm32::{FLASH, RCC}; use cast::u32; @@ -12,7 +12,7 @@ pub trait RccExt { fn constrain(self) -> Rcc; } -#[cfg(feature = "stm32f042")] +#[cfg(any(feature = "stm32f042", feature = "stm32f030"))] impl RccExt for RCC { fn constrain(self) -> Rcc { Rcc { @@ -38,7 +38,7 @@ pub struct CFGR { sysclk: Option, } -#[cfg(feature = "stm32f042")] +#[cfg(any(feature = "stm32f042", feature = "stm32f030"))] impl CFGR { pub fn hclk(mut self, freq: F) -> Self where