stm32/rcc: cleanup merge

This commit is contained in:
xoviat
2023-07-30 10:18:54 -05:00
parent 2f18770e27
commit a8a491212b
5 changed files with 14 additions and 8 deletions

View File

@@ -22,8 +22,15 @@ pub enum ClockSrc {
PLL,
}
impl Into<u8> for APBPrescaler {
fn into(self) -> u8 {
/// PLL clock input source
#[derive(Clone, Copy, Debug)]
pub enum PllSrc {
HSI16,
HSE(Hertz),
}
impl Into<Pllsrc> for PllSrc {
fn into(self) -> Pllsrc {
match self {
PllSrc::HSE(..) => Pllsrc::HSE,
PllSrc::HSI16 => Pllsrc::HSI16,