From e76c0d03b04a9d393407bdb790350e29a94e5d23 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sun, 15 Mar 2026 09:48:31 +0100 Subject: [PATCH] =?UTF-8?q?rep=C3=B6ace=20defines=20with=20enum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vp/system.cpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/vp/system.cpp b/src/vp/system.cpp index 9c932b0..05db833 100644 --- a/src/vp/system.cpp +++ b/src/vp/system.cpp @@ -17,18 +17,20 @@ namespace vp { using namespace sc_core; using namespace vpvper::minres; -#define UART0_IRQ 16 -#define TIMER0_IRQ0 17 -#define TIMER0_IRQ1 18 -#define QSPI_IRQ 19 -#define I2S_IRQ 20 -#define CAM_IRQ 21 -#define DMA_IRQ 22 -#define GPIO_ORQ 23 -#define ETH0_IRQ 24 -#define ETH1_IRQ 25 -#define MDIO0_IRQ 26 -#define MDIO1_IRQ 27 +enum { + UART0_IRQ = 16, + TIMER0_IRQ0 = 17, + TIMER0_IRQ1 = 18, + QSPI_IRQ = 19, + I2S_IRQ = 20, + CAM_IRQ = 21, + DMA_IRQ = 22, + GPIO_ORQ = 23, + ETH0_IRQ = 24, + ETH1_IRQ = 25, + MDIO0_IRQ = 26, + MDIO1_IRQ = 27 +}; system::system(sc_core::sc_module_name nm) : sc_core::sc_module(nm)