Predefined Globals and Constants

To facilitate ARM programming, the mikroC PRO for ARM implements a number of predefined globals and constants.

All ARM SFR registers are implicitly declared as global variables of volatile unsigned long. These identifiers have an external linkage, and are visible in the entire project. When creating a project, the mikroC PRO for ARM will include an appropriate (*.c) file from defs folder, containing declarations of available SFR registers and constants (such as GPIO, RCC, etc). All identifiers are in upper case, identical to nomenclature in the datasheets.

For a complete set of predefined globals and constants, look for “Defs” in the mikroC PRO for ARM installation folder, or probe the Code Assistant for specific letters (Ctrl+Space in the Code Editor).

Predefined project level defines

mikroC PRO for ARM provides several predefined project level defines that you can use in your project :

Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
Want more examples and libraries? 
Find them on LibStock - A place for the code