mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
Introduce PeripheralBorrow trait
This commit is contained in:
parent
f4791b826a
commit
9c4087ac5c
@ -14,3 +14,8 @@ pub use mutex::*;
|
||||
pub use portal::*;
|
||||
pub use signal::*;
|
||||
pub use waker::*;
|
||||
|
||||
pub trait PeripheralBorrow {
|
||||
type Target;
|
||||
unsafe fn unborrow(self) -> Self::Target;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user