Merge pull request #223 from timokroeger/interrupt-unborrow
Add `Unborrow` trait bound for `Interrupt`
This commit is contained in:
commit
6f5c85c50f
@ -30,7 +30,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for NrWrap {
|
||||
}
|
||||
}
|
||||
|
||||
pub unsafe trait Interrupt {
|
||||
pub unsafe trait Interrupt: crate::util::Unborrow<Target = Self> {
|
||||
type Priority: From<u8> + Into<u8> + Copy;
|
||||
fn number(&self) -> u16;
|
||||
unsafe fn steal() -> Self;
|
||||
|
Loading…
x
Reference in New Issue
Block a user