Introduce PeripheralBorrow trait
This commit is contained in:
parent
f4791b826a
commit
9c4087ac5c
@ -14,3 +14,8 @@ pub use mutex::*;
|
|||||||
pub use portal::*;
|
pub use portal::*;
|
||||||
pub use signal::*;
|
pub use signal::*;
|
||||||
pub use waker::*;
|
pub use waker::*;
|
||||||
|
|
||||||
|
pub trait PeripheralBorrow {
|
||||||
|
type Target;
|
||||||
|
unsafe fn unborrow(self) -> Self::Target;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user