From acce7d8e05ac38776d6340342f6a7868df4f7f28 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 28 Nov 2021 23:53:05 +0100 Subject: lcd driver added; fixed startup code; --- fw/fe310/eos/interrupt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fw/fe310/eos/interrupt.c') 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) { -- cgit v1.2.3