nrf: nicer Peripherals api, add take()
This commit is contained in:
@ -19,3 +19,7 @@ pub trait PeripheralBorrow {
|
||||
type Target;
|
||||
unsafe fn unborrow(self) -> Self::Target;
|
||||
}
|
||||
|
||||
pub trait Steal {
|
||||
unsafe fn steal() -> Self;
|
||||
}
|
||||
|
Reference in New Issue
Block a user