Bump cortex-m to 0.7.0

This commit is contained in:
Nicolas Stalder 2020-12-30 00:08:06 +01:00
parent e65a86f696
commit aa90cb1484
2 changed files with 6 additions and 3 deletions

View file

@ -38,7 +38,7 @@
use core::ops::Sub;
use cortex_m::{
interrupt::Nr,
interrupt::InterruptNumber,
peripheral::{CBP, CPUID, DCB, DWT, FPB, FPU, ITM, MPU, NVIC, SCB, TPIU},
};
pub use cortex_m_rtic_macros::app;
@ -158,7 +158,7 @@ pub trait Monotonic {
/// [`NVIC::pend`](../cortex_m/peripheral/struct.NVIC.html#method.pend)
pub fn pend<I>(interrupt: I)
where
I: Nr,
I: InterruptNumber,
{
NVIC::pend(interrupt)
}