2021-07-21 18:30:55 +00:00
|
|
|
#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
|
|
|
|
|
2021-07-26 09:17:52 +00:00
|
|
|
#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
|
|
|
|
|
2021-07-21 18:30:55 +00:00
|
|
|
void init_pic(void);
|
2021-07-25 22:24:04 +00:00
|
|
|
void acknowledge(uint32_t int_vector);
|
2021-07-21 18:30:55 +00:00
|
|
|
|
|
|
|
#endif /* !PIC_H */
|