Skip to content

Commit

Permalink
SoC: remove INTMODE_xxx macros in <Device.h>
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Nov 29, 2023
1 parent 365f133 commit 17421e8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions SoC/evalsoc/Common/Include/evalsoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ typedef enum {
DOWNLOAD_MODE_MAX,
} DownloadMode_Type;

/* SoC Interrupt mode definition */
#define INTMODE_ECLIC 0 /*!< Eclic interrupt mode */
#define INTMODE_PLIC 1 /*!< Plic interrupt mode */

/** \brief CPU Internal Region Information */
typedef struct IRegion_Info {
unsigned long iregion_base; /*!< Internal region base address */
Expand Down
4 changes: 2 additions & 2 deletions SoC/evalsoc/Common/Source/system_evalsoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ static void Interrupt_Init(void)
}
SystemCoreInterruptHandlers[9] = (unsigned long)system_smode_extirq_handler;
SystemCoreInterruptHandlers[11] = (unsigned long)system_mmode_extirq_handler;
#else
#endif
#if defined(__ECLIC_PRESENT) && (__ECLIC_PRESENT == 1)
ECLIC_Init();
#endif

}

/**
Expand Down
4 changes: 0 additions & 4 deletions SoC/gd32vf103/Common/Include/gd32vf103.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ typedef enum {
DOWNLOAD_MODE_MAX,
} DownloadMode_Type;

/* SoC Interrupt mode definition */
#define INTMODE_ECLIC 0 /*!< Eclic interrupt mode */
#define INTMODE_PLIC 1 /*!< Plic interrupt mode */

/* Simulation mode macros */
#define SIMULATION_MODE_XLSPIKE 0 /*!< xlspike simulation mode */
#define SIMULATION_MODE_QEMU 1 /*!< qemu simulation mode */
Expand Down

0 comments on commit 17421e8

Please sign in to comment.