diff options
Diffstat (limited to 'bsp/coreip-s51-arty')
-rw-r--r-- | bsp/coreip-s51-arty/mee.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bsp/coreip-s51-arty/mee.h b/bsp/coreip-s51-arty/mee.h index d8a3ebb..b2fb9d2 100644 --- a/bsp/coreip-s51-arty/mee.h +++ b/bsp/coreip-s51-arty/mee.h @@ -3,6 +3,14 @@ #ifndef COREIP_S51_ARTY__MEE_H #define COREIP_S51_ARTY__MEE_H +#ifdef __MEE_MACHINE_MACROS +/* To Satisfy libmetal build */ +#ifndef __MEE_CLIC_SUBINTERRUPTS +#define __MEE_CLIC_SUBINTERRUPTS 0 +#endif +#endif + +#ifndef __MEE_MACHINE_MACROS #define __MEE_CLINT_2000000_INTERRUPTS 2 #define MEE_MAX_CLINT_INTERRUPTS __MEE_CLINT_2000000_INTERRUPTS @@ -19,7 +27,7 @@ #define MEE_MAX_GPIO_INTERRUPTS __MEE_GPIO_20002000_INTERRUPTS #define __MEE_SERIAL_20000000_INTERRUPTS 1 -#define MEE_MAX_UART_INTERRUPTS __MEE_SERIAL_20000000_INTERRUPTS +#define MEE_MAX_UART_INTERRUPTS 1 #include <mee/drivers/riscv,cpu.h> #include <mee/drivers/riscv,clint0.h> @@ -464,6 +472,8 @@ struct __mee_driver_sifive_gpio_switch *__mee_switch_table[] = { &__mee_dt_switch_2, &__mee_dt_switch_3}; +#endif + #endif /*MEE__MACHINE__COREIP_S51_ARTY__MEE_H*/ #endif/*ASSEMBLY*/ |