Remove free() from PeripheralMutex and all nrf drivers.

This commit is contained in:
Dario Nieuwenhuis
2021-03-18 02:01:29 +01:00
parent 4b2fdd450e
commit 0cd19a58c3
4 changed files with 23 additions and 93 deletions

View File

@ -120,11 +120,6 @@ impl<T: Instance> Spim<T> {
fn inner(self: Pin<&mut Self>) -> Pin<&mut PeripheralMutex<State<T>>> {
unsafe { Pin::new_unchecked(&mut self.get_unchecked_mut().inner) }
}
pub fn free(self: Pin<&mut Self>) -> (T, T::Interrupt) {
let (state, irq) = self.inner().free();
(state.spim, irq)
}
}
impl<T: Instance> FullDuplex<u8> for Spim<T> {