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

@ -238,11 +238,6 @@ impl Qspi {
unsafe { Pin::new_unchecked(&mut self.get_unchecked_mut().inner) }
}
pub fn free(self: Pin<&mut Self>) -> (QSPI, interrupt::QSPI) {
let (state, irq) = self.inner().free();
(state.inner, irq)
}
fn wait_ready<'a>(mut self: Pin<&'a mut Self>) -> impl Future<Output = ()> + 'a {
poll_fn(move |cx| {
self.as_mut().inner().with(|s, _irq| {