RTEMS 6.3
Loading...
Searching...
No Matches
pic.h File Reference

PIC definitions. More...

Go to the source code of this file.

Macros

#define PIC1   0x20
#define PIC2   0xA0
#define PIC1_COMMAND   PIC1
#define PIC1_DATA   (PIC1+1)
#define PIC2_COMMAND   PIC2
#define PIC2_DATA   (PIC2+1)
#define PIC_ICW1_ICW4   0x01
#define PIC_ICW1_SINGLE   0x02
#define PIC_ICW1_INTERVAL4   0x04
#define PIC_ICW1_LEVEL   0x08
#define PIC_ICW1_INIT   0x10
#define PIC_ICW4_8086   0x01
#define PIC_ICW4_AUTO   0x02
#define PIC_ICW4_BUF_SLAVE   0x08
#define PIC_ICW4_BUF_MASTER   0x0C
#define PIC_ICW4_SFNM   0x10
#define PIC1_REMAP_DEST   0x20
#define PIC2_REMAP_DEST   0x28

Functions

void pic_remap (uint8_t offset1, uint8_t offset2)
void pic_disable (void)

Detailed Description

PIC definitions.

Function Documentation

◆ pic_disable()

void pic_disable ( void )

Mask all interrupt requests on PIC.

Note
Even with all interrupts masked, the PIC may still send spurious interrupts (IRQ7), so we should handle them still.