Expand description
Configure legacy PIC 8259
Structsยง
- Interrupt ports of the PIC
Constantsยง
- PIC1_
CMD ๐ - PIC1_
DATA ๐ - PIC1_
OFFSET ๐ - PIC2_
CMD ๐ - PIC2_
DATA ๐ - PIC2_
OFFSET ๐ - PIC_
CMD_ ๐EOI Command sent to acknowledge an interrupt. - PIC_
CMD_ ๐INIT Command sent to begin PIC initialization. - PIC_
MODE_ ๐8086 8086/8088 or 8085 mode. - PIC_
MODE_ ๐AUTO_ EOI Single or multiple (cascade mode) 8259A
Functionsยง
- Disable the PIC
- Set the End Of Interrupt bit to allow new interrupts.
- Initialize the chained 8259 PICs as shown below.