Skip to content

Commit 37031fb

Browse files
committed
feat(icm): Removes the underscores from the owned AHB and APB clocks in the Icm struct per the recommendation in PR atsamd-rs#927.
1 parent 4ab776c commit 37031fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hal/src/peripherals/icm.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,8 @@ impl<I: RegionNum> Region<I> {
910910
pub struct Icm {
911911
/// ICM pac register providing hardware access
912912
icm: crate::pac::Icm,
913-
_ahb_clk: IcmAhbClk,
914-
_apb_clk: IcmApbClk,
913+
ahb_clk: IcmAhbClk,
914+
apb_clk: IcmApbClk,
915915
}
916916

917917
impl Icm {
@@ -920,8 +920,8 @@ impl Icm {
920920
pub fn new(icm: crate::pac::Icm, ahb_clk: IcmAhbClk, apb_clk: IcmApbClk) -> Self {
921921
Self {
922922
icm,
923-
_ahb_clk: ahb_clk,
924-
_apb_clk: apb_clk,
923+
ahb_clk,
924+
apb_clk,
925925
}
926926
}
927927

@@ -1027,7 +1027,7 @@ impl Icm {
10271027
/// Destroy the ICM peripheral and return its resources
10281028
#[inline]
10291029
pub fn free(self) -> (crate::pac::Icm, IcmAhbClk, IcmApbClk) {
1030-
(self.icm, self._ahb_clk, self._apb_clk)
1030+
(self.icm, self.ahb_clk, self.apb_clk)
10311031
}
10321032

10331033
// Region specifics

0 commit comments

Comments
 (0)