|
Predefined Types, Macros and Constants Processor Expert generates definitions of all hardware register structures to the file IO_Map.h. The Processor Expert type definitions are generated to the file PE_Types.h which also containins definitions of macros used for a peripheral register access. Types
Structure for imagestypedef struct { /* Image */
word width; /* Image width in pixels */
word height; /* Image height in pixels */
byte *pixmap; /* Image pixel bitmap */
word size; /* Image size in bytes */
char *name; /* Image name */
} TIMAGE;
typedef TIMAGE* PIMAGE ; /* Pointer to image */Structure for 16-bit register:/* 16-bit register (big endian format) */
typedef union {
word w;
struct {
byte high,low;
} b;
} TWREG;
Macros__DI() - Disable global interrupts __EI() - Enable global interrupts
EnterCritical() - It saves CCR register and disable
global interrupts
ExitCritical() - It restores CCR register saved
in EnterCritical()
For the list of macros available for Peripheral registers access, please see the chapter Registers Access of the Processor Expert main help. ConstantsMethods Error CodesThe error codes are defined in the PE_Error module. Error code value is 8-bit unsigned byte. Range 0 - 127 is reserved for PE, and 128 - 255 for user.
Copyright 2010 Freescale Semiconductor, Inc.
PROCESSOR EXPERT is trademark of Freescale Semiconductor, Inc. |