Skip to content

Commit 65cbd22

Browse files
Rearrange functions into the sequence normal of use
1 parent 573b9fd commit 65cbd22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nrf-hal-common/src/twim.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ where
8686
Twim(twim)
8787
}
8888

89-
/// Re-enable the instance after it was previously disabled.
90-
pub fn enable(&mut self) {
91-
self.0.enable.write(|w| w.enable().enabled());
92-
}
93-
9489
/// Disable the instance.
9590
pub fn disable(&mut self) {
9691
self.0.enable.write(|w| w.enable().disabled());
9792
}
9893

94+
/// Re-enable the instance after it was previously disabled.
95+
pub fn enable(&mut self) {
96+
self.0.enable.write(|w| w.enable().enabled());
97+
}
98+
9999
/// Set TX buffer, checking that it is in RAM and has suitable length.
100100
unsafe fn set_tx_buffer(&mut self, buffer: &[u8]) -> Result<(), Error> {
101101
slice_in_ram_or(buffer, Error::DMABufferNotInDataMemory)?;

0 commit comments

Comments
 (0)