Download Application Note - Freescale Semiconductor

Transcript
File Structure
5.1
File Structure for the Motherboard Program
Table 4, Table 5, and Table 6 show the source, header, and support files respectively for the motherboard program.
Table 4. Source Files
Source Files
pci_mb.mcp
main.c
pci.c
pci_api.c
Description
Metrowerks motherboard project
Main program file. Main() sets up the exception vector table, and calls PCI routine which initiates
DMA data transfer.
This file contains all the routines that would initialize the PCI bridge of the motherboard and the
add-in and create all the windows in the motherboard and add-in. It also contains the DMA routines
to perform data movement from the motherboard to the add-in.
This file contains convenient API routines that are used by routines in pci.c file.
8260_vads_init.c This is the Metrowerks PQII initialization routine. Note that the software does not make use of this
file. Instead, the software takes the initialization from the debugger configuration file.
intr_PQII_cw.s
This is the lower-level implementation of the interrupt handlers.
Table 5. Header Files
Header Files
MMapPCI.h
Description
Defines all pci internal memory-mapped registers.
PramPq2Cpm.h Data structure of PQII Parameter RAM
MmapPq2Cpm.h CPM memory map
std.h
MMapPQII.h
Standard typedefs and definitions for various objects
PowerQUICC II Internal Memory map
dflags_pci_mb.h Defines all compiling flags.
comm._def.h
Contains definitions pertaining to the PQII Interrupt Controller. Also, contains the definition of internal
memory map.
Table 6. Support Files
Metrowerks Support Files
__ppc_eabi_init.c
Description
Needed to build libmw.a
MSL_C.PPCEABI.BARE.S.a Needed to build libmw.a
Runtime.PPCEABI.S.a
Needed to build libmw.a
UART1_MOT_8260_ADS.a Metrowerks printf() uses SCC1 and RS232-1 on the 8260ADS.
PowerQUICC II™ PCI Example Software, Rev. 1
Freescale Semiconductor
15