SayoriOS 0.3.3

interrupt.h
1 #ifndef INTERRUPT_H
2 #define INTERRUPT_H
3
4 #include "portability.h"
5
6 void interrupt(unsigned int);
7 void interrupt_disable(void);
8 void interrupt_enable(void);
9 unsigned char interrupt_get_IF(void);
10 void interrupt_set_IF(unsigned char);
11 unsigned char interrupt_get_mask(void);
12 void interrupt_set_mask(unsigned char);
13 void interrupt_flush(void);
14 unsigned short interrupt_vector_for(int);
15 int interrupt_get_enabled(void);
16 int interrupt_pending(void);
17
18 enum {
19 INTR_VBLANK = 0x01,
20 INTR_LCDSTAT = 0x02,
21 INTR_TIMER = 0x04,
22 INTR_SERIAL = 0x08,
23 INTR_JOYPAD = 0x10
24 };
25 #endif