Skip to content

Commit ec4122b

Browse files
committed
DAC D5X Rename release to free
1 parent bafcc23 commit ec4122b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/src/peripherals/dac/d5x.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl<PS: PclkSourceId> Dac<PS> {
271271

272272
/// Destroy the DAC peripheral, returning resources.
273273
/// The DAC will be disabled and reset before being released
274-
pub fn release(self) -> (pac::Dac, ApbClk<types::Dac>, Pclk<types::Dac, PS>) {
274+
pub fn free(self) -> (pac::Dac, ApbClk<types::Dac>, Pclk<types::Dac, PS>) {
275275
self.inner.ctrla().modify(|_, w| w.enable().clear_bit());
276276
self.sync();
277277
self.inner.ctrla().write(|w| w.swrst().set_bit());

0 commit comments

Comments
 (0)