summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/soc/interrupt.h
blob: c6252b5f264b1b5ebec9706415b720502ef8dc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdint.h>

#include "../irq_def.h"

typedef void (*eos_intr_handler_t) (void);

int eos_intr_init(uint8_t wakeup_cause);
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);
void eos_intr_mask(uint8_t priority);