diff --git a/rp2040-hal/src/spi.rs b/rp2040-hal/src/spi.rs index 6c5f345ae..f53173285 100644 --- a/rp2040-hal/src/spi.rs +++ b/rp2040-hal/src/spi.rs @@ -193,9 +193,9 @@ impl, const DS: u8> Spi D { - self.device + /// Releases the underlying device and pins. + pub fn free(self) -> (D, P) { + (self.device, self.pins) } /// Set device pre-scale and post-div properties to match the given baudrate as