summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/interrupt.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-11-28 23:53:05 +0100
committerUros Majstorovic <majstor@majstor.org>2021-11-28 23:53:05 +0100
commitacce7d8e05ac38776d6340342f6a7868df4f7f28 (patch)
treec0e2f3934b82967e4c2aff4a3dfcc5802bc94232 /fw/fe310/eos/interrupt.c
parent0b0972ce96a59fb9b59c0b166e0174ba4d8dd198 (diff)
lcd driver added; fixed startup code;
Diffstat (limited to 'fw/fe310/eos/interrupt.c')
-rw-r--r--fw/fe310/eos/interrupt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fw/fe310/eos/interrupt.c b/fw/fe310/eos/interrupt.c
index 5eeace8..8af492b 100644
--- a/fw/fe310/eos/interrupt.c
+++ b/fw/fe310/eos/interrupt.c
@@ -7,6 +7,7 @@
#include "platform.h"
#include "plic_driver.h"
+#include "eos.h"
#include "interrupt.h"
// Global Instance data for the PLIC
@@ -25,7 +26,7 @@ uintptr_t eos_intr_handle(uintptr_t int_num) {
return int_num;
}
-void eos_intr_init(uint8_t wakeup_cause) {
+int eos_intr_init(uint8_t wakeup_cause) {
for (int i = 0; i < PLIC_NUM_INTERRUPTS; i++){
ext_interrupt_handler[i] = NULL;
}
@@ -43,6 +44,8 @@ void eos_intr_init(uint8_t wakeup_cause) {
// Enable all interrupts
set_csr(mstatus, MSTATUS_MIE);
+
+ return EOS_OK;
}
void eos_intr_set(uint8_t int_num, uint8_t priority, eos_intr_handler_t handler) {