From 85500fe0d01b691a9bdd8c2330d26d66bc2bc177 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 18 Oct 2019 18:38:00 +0200 Subject: added spi driver --- code/fe310/eos/interrupt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'code/fe310/eos/interrupt.c') diff --git a/code/fe310/eos/interrupt.c b/code/fe310/eos/interrupt.c index 706d96b..0172fb8 100644 --- a/code/fe310/eos/interrupt.c +++ b/code/fe310/eos/interrupt.c @@ -56,6 +56,10 @@ void eos_intr_set(uint8_t int_num, uint8_t priority, eos_intr_fptr_t handler) { PLIC_enable_interrupt(&plic, int_num); } +void eos_intr_set_handler(uint8_t int_num, eos_intr_fptr_t handler) { + ext_interrupt_handler[int_num] = handler; +} + void eos_intr_set_priority(uint8_t int_num, uint8_t priority) { PLIC_set_priority(&plic, int_num, priority); } -- cgit v1.2.3