Skip to content

Commit 4c0d0f0

Browse files
committed
feat(dsu): Removes the underscores from the owned AHB and APB clocks in the Dsu struct per the recommendation in PR #927.
1 parent 77fa96e commit 4c0d0f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hal/src/peripherals/dsu.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ pub struct Dsu {
1515
/// PAC peripheral
1616
dsu: pac::Dsu,
1717
// AHB clock
18-
_ahb_clk: DsuAhbClk,
18+
ahb_clk: DsuAhbClk,
1919
// APB clock
20-
_apb_clk: DsuApbClk,
20+
apb_clk: DsuApbClk,
2121
}
2222

2323
/// Errors from hardware
@@ -64,8 +64,8 @@ impl Dsu {
6464
} else {
6565
Ok(Self {
6666
dsu,
67-
_ahb_clk: ahb_clk,
68-
_apb_clk: apb_clk,
67+
ahb_clk,
68+
apb_clk,
6969
})
7070
}
7171
}
@@ -76,7 +76,7 @@ impl Dsu {
7676
pac.wrctrl()
7777
.write(|w| unsafe { w.perid().bits(33).key().set_() });
7878

79-
(self.dsu, self._ahb_clk, self._apb_clk)
79+
(self.dsu, self.ahb_clk, self.apb_clk)
8080
}
8181

8282
/// Clear bus error bit

0 commit comments

Comments
 (0)