Predefined Globals and Constants
To facilitate FT90x programming, the mikroBasic PRO for FT90x implements a number of predefined globals and constants.
All FT90x SFRs are implicitly declared as global variables of volatile byte. These identifiers have an external linkage, and are visible in the entire project. When creating a project, the mikroBasic PRO for FT90x will include an appropriate (*.mbas) file from defs folder, containing declarations of available SFRs and constants (such as GPIO_PORT_08_15, etc).
For a complete set of predefined globals and constants, look for “Defs” in the mikroBasic PRO for FT90x installation folder, or probe the Code Assistant for specific letters (Ctrl+Space in the Code Editor).
Predefined project level defines
mikroBasic PRO for FT90x provides predefined project level defines that you can use in your project, for example :
' MCU name : #IFDEF FT900 ... #ENDIF ' Hardware Debug build type : #IFDEF HW_DEBUG ... #ENDIF
What do you think about this topic ? Send us feedback!