AN2757 Freescale Semiconductor / Motorola, AN2757 Datasheet - Page 42

no-image

AN2757

Manufacturer Part Number
AN2757
Description
MPC5200 Quick Start
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Module Initialization Code
Figure 43. Register Summary View
7
Module Initialization Code
Although there is no limit in the way how the MPC5200 modules can be initialized, the applications based on the
MPC5200_Quick_Start may use the standard initialization code and the support of the Graphical Configuration Tool.
Similarly as with the Quick Start tools for other Freescale (formerly Motorola) platforms (MPC5xx, MPC55xx, 56F800,...) there is
a special system call used to access the device’s peripheral modules. A general format of the Quick Start system call is:
ioctl (MODULE, MODULE_COMMAND, parameter);
Where the “MODULE” is an unique identifier of the peripheral module (e.g. PSC1, SPI, CAN,...) and the “MODULE_COMMAND”
together with a “parameter” specify an action to be performed on a module (e.g. PSC_INIT, CAN_TRANSMIT,
SPI_SET_BIT_RATE,...).
Unlike the other Quick Start platforms, the MPC5200_Quick_Start does not implement any commands except the ones used for
the module initialization (PSC_INIT, CAN_INIT,...). One exception is the CAN module, for which there is a complete “low-level”
driver implemented using the ioctl() system calls as well as the sample application demonstrating its use. The CAN low-level
driver is compatible with other msCAN drivers of other Quick Start platforms (Freescale (formerly Motorola) 56F800/E).
The list of initialization commands to be used with the ioctl() system call can be found in the
Table 3
below. No initialization
command accepts the “parameter” value so the NULL value can be used.
AN2757 MPC5200 Quick Start and Graphical Configuration Tool
42
Freescale Semiconductor

Related parts for AN2757