Global macros are macros defined by Processor Expert for the project.
They are the same for all components in the project and are not changed during the code generation. This table explains the predefined global macros.
| Field | Description |
|---|---|
| Language, Compiler, Version | |
| Language | identification of selected target language: MODULA, ANSIC, JAVA, ASM |
| Compiler | identification of selected target compiler |
| CommentLine | is defined if there is sequence of characters which starts comment to the end of line for selected target language. Value of the macro is this sequence |
| PEversion | version of Processor Expert, format XX.XX |
| TimeStamp | date and time of code generation |
| CPU, interrupt vector table | |
| CPUvariant | selected target CPU type (from CPU properties) |
| CPUtype | type of the target CPU component |
| CPUfamily | target CPU family |
| CPUproducer | producer of the target CPU |
| InterruptTableType | type of the interrupt vector table |
| InterruptVectorType | type of the interrupt vector |
| Clock, speed modes | |
| Xtal_kHz | frequency of Xtal of the CPU, integer number |
| HighClock_kHz | clock frequency in front of system prescaler in high speed mode, integer number |
| LowClock_kHz | clock frequency in front of system prescaler in low speed mode, integer number |
| SlowClock_kHz | clock frequency in front of system prescaler in slow speed mode, integer number |
| CPUsystem_ticks | number of ticks behind system prescaler, list of three values for every speed mode |
| CPUrunSpeedModeNum | number of supported speed modes in the target CPU |
| SetHighSpeedMode | defined if high speed mode is supported in the target CPU (high speed mode must be supported) |
| SetLowSpeedMode | defined if low speed mode is supported in the target CPU |
| SetSleepMode | defined if slow speed mode is supported in the target CPU |
| names of all common prescalers | initialization value, names depend on the CPU description database |
| Modules | |
| ProjectName | name of the project |
| ProjectModule | name of the main module |
| ProcessorModule | name of the CPU module |
| ProcessorName | name of the CPU component |
| ModuleList | list of all component modules in the project (without CPU module) |
| EventModuleList | list of all event modules in the project |
| ExternalModules | list of all external programs in the project |
| ExternalModuleExts | list of corresponding extensions of external programs |
| ExternalModuleDir | list of corresponding directories of external programs |
| ExternalModuleRelDir | list of corresponding relative directories of external programs |
| DriverExtension | extension of driver filename, DRV or DMO or TST |
| Directories | |
| Dir_Project | directory of the current project |
| DirRel_Events, DirRel_Binary relative path from project-directory to drivers | directory and binary-directory |
| DirRel_EventToBinary | relative path from code-directory to binary-directory |
| Dir_Drivers, Dir_Events, Dir_Binary | absolute path for drivers, event modules and binary files. You should always use relative paths |
| Dir_Compiler | absolute path of external compiler; it is defined as external tool |