summaryrefslogtreecommitdiff
path: root/code/fe310/eos/interrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/interrupt.h')
-rw-r--r--code/fe310/eos/interrupt.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/code/fe310/eos/interrupt.h b/code/fe310/eos/interrupt.h
index 3b5dc7e..075e7eb 100644
--- a/code/fe310/eos/interrupt.h
+++ b/code/fe310/eos/interrupt.h
@@ -1,12 +1,10 @@
#include <stdint.h>
-// Structures for registering different interrupt handlers
-// for different parts of the application.
-typedef void (*eos_intr_fptr_t) (void);
+typedef void (*eos_intr_handler_t) (void);
void eos_intr_init(void);
-void eos_intr_set(uint8_t int_num, uint8_t priority, eos_intr_fptr_t handler);
-void eos_intr_set_handler(uint8_t int_num, eos_intr_fptr_t handler);
+void eos_intr_set(uint8_t int_num, uint8_t priority, eos_intr_handler_t handler);
+void eos_intr_set_handler(uint8_t int_num, eos_intr_handler_t handler);
void eos_intr_set_priority(uint8_t int_num, uint8_t priority);
void eos_intr_enable(uint8_t int_num);
void eos_intr_disable(uint8_t int_num);