From 48ccda94ccbfa24d28acbcb6342fceaf597e6259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 5 Nov 2024 15:00:45 +0100 Subject: [PATCH] Remove InterruptNumber --- xtensa-lx/src/interrupt.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/xtensa-lx/src/interrupt.rs b/xtensa-lx/src/interrupt.rs index 45a01f1e168..14583d7b5f4 100644 --- a/xtensa-lx/src/interrupt.rs +++ b/xtensa-lx/src/interrupt.rs @@ -2,27 +2,6 @@ use core::arch::asm; -/// Trait for enums of external interrupt numbers. -/// -/// This trait should be implemented by a peripheral access crate (PAC) -/// on its enum of available external interrupts for a specific device. -/// Each variant must convert to a u16 of its interrupt number, -/// which is its exception number - 16. -/// -/// # Safety -/// -/// This trait must only be implemented on enums of device interrupts. Each -/// enum variant must represent a distinct value (no duplicates are permitted), -/// and must always return the same value (do not change at runtime). -/// -/// These requirements ensure safe nesting of critical sections. -pub unsafe trait InterruptNumber: Copy { - /// Return the interrupt number associated with this variant. - /// - /// See trait documentation for safety requirements. - fn number(self) -> u16; -} - /// Disables all interrupts and return the previous settings #[inline] pub fn disable() -> u32 {