From bfe48e24926ad1444b08b8dd2cf573f6c18013d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 5 Nov 2024 14:28:33 +0100 Subject: [PATCH] Do not implement InterruptNumber for XtensaLx --- CHANGELOG.md | 1 + src/generate/interrupt.rs | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db74a328..6fdad6f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). - *breaking change* Return raw writtened value - Add `from_write`, `from_write_with_zero`, and `from_modify` register modifiers with generic return value +- `InterruptNumber` is no longer implemented for Xtensa peripheral interrupts ## [v0.33.5] - 2024-10-12 diff --git a/src/generate/interrupt.rs b/src/generate/interrupt.rs index eb5cb711..498bdece 100644 --- a/src/generate/interrupt.rs +++ b/src/generate/interrupt.rs @@ -308,13 +308,6 @@ pub fn render( root.extend(quote! { #interrupt_enum - unsafe impl xtensa_lx::interrupt::InterruptNumber for Interrupt { - #[inline(always)] - fn number(#self_token) -> u16 { - #nr_expr - } - } - /// TryFromInterruptError #defmt #[derive(Debug, Copy, Clone)]