nrf: nicer Peripherals api, add take()

This commit is contained in:
Dario Nieuwenhuis
2021-03-21 21:58:59 +01:00
parent d5ff1a0ae3
commit a134fce122
7 changed files with 175 additions and 143 deletions

View File

@ -19,3 +19,7 @@ pub trait PeripheralBorrow {
type Target;
unsafe fn unborrow(self) -> Self::Target;
}
pub trait Steal {
unsafe fn steal() -> Self;
}