Skip to content

Commit 4979643

Browse files
grodinomvertescher
authored andcommitted
Added hse field in rcc::Clocks
1 parent 0f97c39 commit 4979643

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rcc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,10 @@ impl CFGR {
479479
cortex_m::asm::delay(16);
480480

481481
Clocks {
482+
hse: match self.hse {
483+
Some(hse) => Some(Hertz(hse.freq)),
484+
None => None,
485+
},
482486
hclk: Hertz(hclk),
483487
pclk1: Hertz(pclk1),
484488
pclk2: Hertz(pclk2),
@@ -494,6 +498,7 @@ impl CFGR {
494498
/// The existence of this value indicates that the clock configuration can no longer be changed
495499
#[derive(Clone, Copy)]
496500
pub struct Clocks {
501+
hse: Option<Hertz>,
497502
hclk: Hertz,
498503
pclk1: Hertz,
499504
pclk2: Hertz,

0 commit comments

Comments
 (0)