MOTOROLA
Appendix E. MPC8240 Drivers
E-49
This mode supports two subsequent interrupt modes, either a serial interrupt mode (up to
16 serial interrupt sources) or a direct interrupt mode (up to 5 direct interrupt sources).
Refer to Sections 11.4–11.6 in the MPC8240 User's Manual for more on EPIC modes.
E.4.3
Drivers/Epic Directory Structure
DINK32/drivers/epic
epic.h: contains all EPIC register address macros and all function declarations
epic1.c: contains all C language routines
epic2.s: contains all Assembly language routines
epicUtil.s: contains assembly routines to load and store to registers in the EUMB
makefile: used by the DINK32 makefile to build this directory into a driver library
Readme.txt: a text version of this appendix
E.4.4
EPIC Cross-Reference Table Structure
The following table is defined in epic1.c in order to cross reference interrupt vector
numbers with the corresponding interrupt vector/priority register address and interrupt
service routine address:
/* Register Address Offset/ Vector Description /ISR Addr cross-reference table
*/
struct SrcVecTable SrcVecTable[MAXVEC] =
{
{ EPIC_EX_INT0_VEC_REG, "External Direct/Serial Source 0",
{ EPIC_EX_INT1_VEC_REG, "External Direct/Serial Source 1",
{ EPIC_EX_INT2_VEC_REG, "External Direct/Serial Source 2",
{ EPIC_EX_INT3_VEC_REG, "External Direct/Serial Source 3",
{ EPIC_EX_INT4_VEC_REG, "External Direct/Serial Source 4",
{ EPIC_SR_INT5_VEC_REG, "External Serial Source 5",
{ EPIC_SR_INT6_VEC_REG, "External Serial Source 6",
{ EPIC_SR_INT7_VEC_REG, "External Serial Source 7",
{ EPIC_SR_INT8_VEC_REG, "External Serial Source 8",
{ EPIC_SR_INT9_VEC_REG, "External Serial Source 9",
{ EPIC_SR_INT10_VEC_REG, "External Serial Source 10",
{ EPIC_SR_INT11_VEC_REG, "External Serial Source 11",
{ EPIC_SR_INT12_VEC_REG, "External Serial Source 12",
{ EPIC_SR_INT13_VEC_REG, "External Serial Source 13",
{ EPIC_SR_INT14_VEC_REG, "External Serial Source 14",
{ EPIC_SR_INT15_VEC_REG, "External Serial Source 15",
{ EPIC_TM0_VEC_REG,
{ EPIC_TM1_VEC_REG,
{ EPIC_TM2_VEC_REG,
{ EPIC_TM3_VEC_REG,
{ EPIC_I2C_INT_VEC_REG, "Internal I2C Source",
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
0x0},
"Global Timer Source 0",
"Global Timer Source 1",
"Global Timer Source 2",
"Global Timer Source 3",
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.