24 lines
407 B
C
24 lines
407 B
C
#ifndef PIC_H
|
|
#define PIC_H
|
|
|
|
#define MASTER_PIC_A 0x20
|
|
#define MASTER_PIC_B 0x21
|
|
#define SLAVE_PIC_A 0xa0
|
|
#define SLAVE_PIC_B 0xa1
|
|
|
|
#define ICW1 0x11
|
|
|
|
#define IRQ0_PIN 0x1
|
|
#define IRQ1_PIN 0x2
|
|
#define IRQ2_PIN 0x4
|
|
#define IRQ3_PIN 0x8
|
|
#define IRQ4_PIN 0x10
|
|
#define IRQ5_PIN 0x20
|
|
#define IRQ6_PIN 0x40
|
|
#define IRQ7_PIN 0x80
|
|
|
|
void init_pic(void);
|
|
void acknowledge(uint32_t int_vector);
|
|
|
|
#endif /* !PIC_H */
|