Skip to content

Commit ddfd29f

Browse files
committed
Allow LSI clock as source for the RNG peripheral
1 parent 1d16f3f commit ddfd29f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rng.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ impl KerClk for RNG {
3838
clocks.pll1_q_ck().expect("RNG: PLL1_Q must be enabled")
3939
}
4040
RngClkSel::LSE => unimplemented!(),
41-
RngClkSel::LSI => unimplemented!(),
41+
RngClkSel::LSI => {
42+
clocks.lsi_ck().expect("RNG: LSI must be enabled")
43+
}
4244
}
4345
}
4446
}

0 commit comments

Comments
 (0)