pSOS SOFTWARE DEVELOPMENT
4-4
CPCI-810 User’s Manual
Revision 1.1, June 2001
Table 4-1 shows the EPIC hardware interrupts, and the assigned default interrupt priorities. These
interrupt priorities can be modified by the application programmer by changing the vector priority
values in the table called priTable_810 in the BSP file epic.c, and recompiling the BSP. Priority values
are in the range of 15 to 0, with 15 being the highest priority (0 inhibiting the interrupt altogether).
For further information on the MPC8240 EPIC, consult chapter 4 of the MPC8240 User’s Manual.
Table 4-1. CPCI-810 Interrupt Vectors.
4.5.1
Connecting and Disconnecting Interrupt Handlers in pSOS
PSOS utilities for connecting and disconnecting interrupt handlers to these interrupts can be found in
the BSP file isr.c. The function PssSetIntHandler is used to connect and enable an interrupt handler:
INT
NUMBER
INT
VECTOR
SOURCE
PRIORITY LEVEL
DESCRIPTION
0
0x10
PINTA
8
INTA on PCI Bus
1
0x11
PINTB
8
INTB on PCI Bus
2
0x12
PINTC
8
INTC on PCI Bus
3
0x13
PINTD
8
INTD on PCI Bus
4
0x14
PMCINTA
6
INTA from PMC Module
5
0x15
PMCINTB
6
INTB from PMC Module
6
0x16
PMCINTC
6
INTC from PMC Module
7
0x17
PMCINTD
6
INTD from PMC Module
8
0x18
ENETINT0
12
Interrupt from 82559 Unit 0
9
0x19
ENETINT1
12
Interrupt from 82559 Unit 1
10
0x1a
TEMP_INT
4
LM75 Temperature Interrupt
11
0x1b
ENUM_INT
10
Hot Swap ENUM Interrupt
12
0x1c
UART_INT
10
UART Interrupt
13
0x1d
FANINT
14
Loss of Fan Interrupt from Chassis
14
0x1e
POWERINT
14
Loss of Power Interrupt from Chassis
15
0x1f
UNUSED
0
UNUSED
16
0x20
TIMER0
12
EPIC Internal Tick Timer 0
17
0x21
TIMER1
12
EPIC Internal Tick Timer 1
18
0x22
TIMER2
2
EPIC Internal Tick Timer 2
19
0x23
TIMER3
2
EPIC Internal Tick Timer 3
20
0x24
I
2
C
4
Interrupt from I
2
C Controller
21
0x25
DMA0
7
Interrupt from DMA Channel 0
22
0x26
DMA1
7
Interrupt from DMA Channel 1
23
0x27
MSG_UNIT
7
Interrupt from Messaging Unit
StockCheck.com