16 lines
300 B
C
16 lines
300 B
C
#ifndef IRQ_H
|
|
#define IRQ_H
|
|
|
|
#include "xcpt.h"
|
|
|
|
#define MAX_NUM_IRQ 8
|
|
|
|
typedef void (*fp_t)(void);
|
|
|
|
int _irq_dispatch(struct xcptcontext * xcp);
|
|
void interrupt_register(int irq_num, fp_t fp);
|
|
void interrupt_enable(int irq_num);
|
|
void interrupt_disable(int irq_num);
|
|
|
|
#endif // IRQ_H
|