User`s manual

Dynamic C Users Manual digi.com 337
APPENDIX A. MACROS AND GLOBAL
VARIABLES
This appendix contains descriptions of macros and global variables available in Dynamic C. This is not an
exhaustive list.
A.1 Macros Defined by the Compiler
The macros in the following table are defined internally. Default values are given where applicable, as well
as directions for changing values.
Table A-1. Macros Defined by the Compiler
Macro Name Definition and Default
_BIOSBAUD_
This is the debug baud rate. The baud rate can be changed in the
Communications tab of Project Options.
_BOARD_TYPE_
This is read from the System ID block or defaulted to 0x100 (the
BL1810 JackRabbit board) if no System ID block is present. This can be
used for conditional compilation based on board type. Board types are
listed in boardtypes.lib.
_CPU_ID_
This macro identifies the CPU type, including its revision; e.g.,
#if _CPU_ID_ >= R3000_R1
will identify a Rabbit 3000 rev. 1 or newer chip
Look in \Lib\..\BIOSLIB\sysiodefs.lib for the constants
and mask macros that are defined for use with _CPU_ID_.
CC_VER Gives the Dynamic C version in hex, i.e., version 7.05 is 0x0705.
DC_CRC_PTR Reserved.
__DATE__
The compiler substitutes this macro with the date that the file was
compiled (either the BIOS or the .c file). The character string literal is of
the form Mmm dd yyyy. The days of the month are as follows: "Jan,"
"Feb," "Mar," "Apr," "May," "Jun," "Jul," "Aug," "Sep," "Oct," "Nov,"
"Dec."
There is a space as the first character of dd if the value is less than
10
.