Skip to content

Commit b062793

Browse files
Jorge IglesiasnewAM
authored andcommitted
Make pclk1 function public to crate
1 parent 7d2309d commit b062793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/src/rcc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ fn cpu1_systick(rcc: &pac::RCC, cfgr: &pac::rcc::cfgr::R, src: SystClkSource) ->
692692
}
693693
}
694694

695-
fn pclk1(rcc: &pac::RCC, cfgr: &pac::rcc::cfgr::R) -> Ratio<u32> {
695+
pub(crate) fn pclk1(rcc: &pac::RCC, cfgr: &pac::rcc::cfgr::R) -> Ratio<u32> {
696696
let div: u32 = ppre_div(cfgr.ppre1().bits()).into();
697697
hclk1(rcc, cfgr) / div
698698
}

0 commit comments

Comments
 (0)