Rename IrqExecutor to InterruptExecutor

This commit is contained in:
Dario Nieuwenhuis
2021-03-17 22:52:27 +01:00
parent a9076636ac
commit 278ce02824
2 changed files with 7 additions and 7 deletions

View File

@ -215,13 +215,13 @@ fn pend_by_number(n: u16) {
cortex_m::peripheral::NVIC::pend(N(n))
}
pub struct IrqExecutor<I: Interrupt> {
pub struct InterruptExecutor<I: Interrupt> {
irq: I,
inner: raw::Executor,
not_send: PhantomData<*mut ()>,
}
impl<I: Interrupt> IrqExecutor<I> {
impl<I: Interrupt> InterruptExecutor<I> {
pub fn new(irq: I) -> Self {
let ctx = irq.number() as *mut ();
Self {