AN2757 Freescale Semiconductor / Motorola, AN2757 Datasheet - Page 40

no-image

AN2757

Manufacturer Part Number
AN2757
Description
MPC5200 Quick Start
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Graphical Configuration Tool
6.6.20
The XL Bus Arbiter module is completely supported by the GCT.
6.6.21
As it was already described in
function right before the user’s main() function is called. The default implementation of the __pre_main() function in the
“appconfig.c” file calls the initialization functions of all MPC5200 modules selected on the STARTUP page of the GCT. The GCT
saves the information about which modules are to be automatically initialized in several special-purpose macro values in the
“appconfig.h” file.
The __pre_main() code does not test whether there is a valid “appconfig.h” configuration of the modules to be initialized. For the
selected modules the __pre_main() code simply invokes the ioctl() system call, exactly as described later in
Initialization
functions are empty for those modules which are not configured in the GCT.
The order in which the MPC5200 modules are initialized is encoded in the __pre_main() function in the “appconfig.c” file. By
default, the order of initialization calls is the same as the order of check-box buttons on the STARTUP control page. Except a
simple prerequisite that the GPIO module should always be initialized before the FEC and ATA modules, the user can modify
the __pre_main() code and the order of module initialization calls according to his specific needs. The FEC and ATA initialization
code requires the GPIO port multiplexer to be configured already.
The rest of MPC5200 modules not initialized by the __pre_main() code can still be initialized “manually” any time in the main()
function or other user code. The initialization calls are described in the
40
XLB Bus Arbiter (XLARB)
Startup Code Control Page (STARTUP)
Code. On the other side, thanks to the conditional compilation of each module’s initialization code, the initialization
AN2757 MPC5200 Quick Start and Graphical Configuration Tool
Section 5.3, Startup
Figure 41. SDRAM Memory Configuration
Code, the MPC5200_Quick_Start startup code invokes the __pre_main()
Section 7, Module Initialization
Freescale Semiconductor
Code.
Section 7, Module

Related parts for AN2757