summaryrefslogtreecommitdiff
path: root/bsp/sifive-hifive1
diff options
context:
space:
mode:
authorBunnaroath Sou <bsou@sifive.com>2019-01-31 14:34:23 -0800
committerBunnaroath Sou <bsou@sifive.com>2019-01-31 14:37:43 -0800
commite5440a966ef8e7569550c8fe4b9ff3ae08459898 (patch)
treec85d6e5daf4b8f29f4417e5ce755ccfde0235fdf /bsp/sifive-hifive1
parent484885df5014232d16053495d2b62a78b5a5e87b (diff)
Update BSP files after unit test e24 clic interrupts
Diffstat (limited to 'bsp/sifive-hifive1')
-rw-r--r--bsp/sifive-hifive1/mee.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/bsp/sifive-hifive1/mee.h b/bsp/sifive-hifive1/mee.h
index 0357ce8..597f1fa 100644
--- a/bsp/sifive-hifive1/mee.h
+++ b/bsp/sifive-hifive1/mee.h
@@ -3,6 +3,10 @@
#ifndef SIFIVE_HIFIVE1__MEE_H
#define SIFIVE_HIFIVE1__MEE_H
+#ifdef __MEE_MACHINE_MACROS
+#endif
+
+#ifndef __MEE_MACHINE_MACROS
#define __MEE_CLINT_2000000_INTERRUPTS 2
#define MEE_MAX_CLINT_INTERRUPTS __MEE_CLINT_2000000_INTERRUPTS
@@ -16,7 +20,7 @@
#define MEE_MAX_GPIO_INTERRUPTS __MEE_GPIO_10012000_INTERRUPTS
#define __MEE_SERIAL_10013000_INTERRUPTS 1
-#define MEE_MAX_UART_INTERRUPTS __MEE_SERIAL_10013000_INTERRUPTS
+#define MEE_MAX_UART_INTERRUPTS 1
#include <mee/drivers/riscv,cpu.h>
#include <mee/drivers/riscv,clint0.h>
@@ -324,6 +328,8 @@ struct __mee_driver_sifive_gpio_button *__mee_button_table[] = {
asm (".weak __mee_switch_table");
struct __mee_driver_sifive_gpio_switch *__mee_switch_table[] = {
NULL };
+#endif
+
#endif /*MEE__MACHINE__SIFIVE_HIFIVE1__MEE_H*/
#endif/*ASSEMBLY*/