Skip to content

Commit 626d896

Browse files
committed
Add fixes to RCC code for plain builds
1 parent aef1521 commit 626d896

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rcc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(feature="device-selected")]
12
use crate::stm32::rcc::cfgr::SWW;
23
use crate::time::Hertz;
34

@@ -26,7 +27,9 @@ pub struct Rcc {
2627
pub cfgr: CFGR,
2728
}
2829

30+
#[allow(unused)]
2931
const HSI: u32 = 8_000_000; // Hz
32+
#[allow(unused)]
3033
const HSI48: u32 = 48_000_000; // Hz - (available on STM32F04x, STM32F07x and STM32F09x devices only)
3134

3235
#[allow(unused)]

0 commit comments

Comments
 (0)